WordPress.org

Plugin Directory

Changeset 1600583


Ignore:
Timestamp:
02/21/17 12:53:43 (5 weeks ago)
Author:
netweblogic
Message:

updating to 2.1

Location:
meta-tag-manager/trunk
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • meta-tag-manager/trunk/meta-tag-manager.php

    r1530992 r1600583  
    55Description: A simple plugin to manage meta tags that appear on aread of your site or individual posts. This can be used for verifiying google, yahoo, and more. 
    66Author: Marcus Sykes 
    7 Version: 2.0.2 
     7Version: 2.1 
    88Author URI: http://msyk.es/?utm_source=meta-tag-manager&utm_medium=plugin-header&utm_campaign=plugins 
    99Text Domain: meta-tag-manager 
    1010*/ 
    1111/* 
    12 Copyright (C) 2016 Marcus Sykes 
     12Copyright (C) 2017 Marcus Sykes 
    1313 
    1414This program is free software; you can redistribute it and/or modify 
     
    2727if( !defined('ABSPATH') ) exit; 
    2828 
    29 define('MTM_VERSION', '2.0'); 
     29define('MTM_VERSION', '2.1'); 
    3030 
    3131class Meta_Tag_Manager { 
     
    127127// Start this plugin once all other plugins are fully loaded 
    128128add_action( 'plugins_loaded', array('Meta_Tag_Manager', 'init'), 100 ); 
    129  
    130 // FREEMIUS INSIGHTS integration 
    131 function meta_tag_manager_freemius() { 
    132     global $meta_tag_manager_freemius; 
    133     if ( ! isset( $meta_tag_manager_freemius ) ) { 
    134         // Include Freemius SDK. 
    135         require_once dirname(__FILE__) . '/freemius/start.php'; 
    136         $meta_tag_manager_freemius = fs_dynamic_init( array( 
    137             'id'                => '264', 
    138             'slug'              => 'meta-tag-manager', 
    139             'public_key'        => 'pk_07d443985f85078e1d30b59ac31b3', 
    140             'is_premium'        => false, 
    141             'has_addons'        => false, 
    142             'has_paid_plans'    => false, 
    143             'menu'              => array( 
    144                 'slug'       => 'meta-tag-manager', 
    145                 'account'    => false, 
    146                 'contact'    => false, 
    147                 'support'    => false, 
    148                 'parent'     => array( 
    149                     'slug' => 'options-general.php', 
    150                 ), 
    151             ), 
    152         )); 
    153     } 
    154     return $meta_tag_manager_freemius; 
    155 } 
    156 // Init Freemius. 
    157 $mtm_freemius_strings = array( 
    158     'you-are-step-away' => __( 'Welcome to the new and improved Meta Tag Manager 2. %s', 'meta-tag-manager' ), 
    159     'activate-x-now' => __('Start setting it up!', 'meta-tag-manager'), 
    160     'optin-x-now' => __( 'Check it out!', 'meta-tag-manager' ), 
    161     'connect-message' => '<br />'. sprintf(__( 'Please help us improve %s by allowing us to collect some information about your site, which is sent to %s.', 'meta-tag-manager' ), '<b>'.__('Meta Tag Manager','meta-tag-manager').'</b>', '<a href="http://freemius.com" target="_blank">freemius.com</a>'). 
    162                         '<br /><br /><b>' . __('This is totally optional and you can skip this step below!', 'meta-tag-manager').'</b>' 
    163 ); 
    164 $mtm_freemius_strings['connect-message_on-update'] = $mtm_freemius_strings['connect-message']; 
    165 $mtm_freemius_strings['few-plugin-tweaks'] = $mtm_freemius_strings['you-are-step-away']; 
    166 meta_tag_manager_freemius()->override_i18n($mtm_freemius_strings); 
  • meta-tag-manager/trunk/mtm-tag-admin.php

    r1419077 r1600583  
    2121        //go through all non-empty values and wp_kses it 
    2222        foreach( $values as $k => $v ){ 
    23             $values[$k] = wp_kses(wp_unslash($v), array()); 
     23            if( $k == 'content'){ 
     24                $values[$k] = wp_unslash($v); 
     25            }else{ 
     26                $values[$k] = wp_kses(wp_unslash($v), array()); 
     27            } 
    2428        } 
    2529        //now pass cleaned values to parent constructor 
  • meta-tag-manager/trunk/mtm-tag.php

    r1419077 r1600583  
    2323        $tag_string = '<meta '.esc_attr($this->type).'="'.esc_attr($this->value).'"'; 
    2424        if( $this->has_content() ){ 
    25             $tag_string .= ' content="'.esc_attr($this->content).'"'; 
     25            if( $this->type == 'http-equiv' && $this->value == 'Link' ){ 
     26                //escape the attribute but allow for the <url>; format to pass through  
     27                $tag_string .= ' content="'.preg_replace('/&lt;(.+)&gt;;/', '<$1>;', esc_attr($this->content)).'"'; 
     28            }else{ 
     29                $tag_string .= ' content="'.esc_attr($this->content).'"'; 
     30            } 
    2631        } 
    2732        $tag_string .= ' />'; 
  • meta-tag-manager/trunk/mtm-update.php

    r1419077 r1600583  
    33    //coming in from MTM 1.x we change the values to something else 
    44    if( !get_option('mtm_version') ){ 
    5         $mtm_data = get_option('mtm_data'); 
     5        $mtm_data = get_option('mtm_data', array()); 
    66        $new_mtm_data = array(); 
    77        foreach($mtm_data as $mtm_tag){ 
     
    2020        } 
    2121        update_option('mtm_data', $new_mtm_data); 
    22         update_option('mtm_custom', array('post-types'=>array('post','page'))); 
     22        update_option('mtm_custom', array('post-types'=>get_post_types())); 
    2323        update_option('mtm_shiny_update_notice', 1); 
    2424    } 
  • meta-tag-manager/trunk/readme.txt

    r1530992 r1600583  
    11=== Meta Tag Manager === 
    2 Contributors: netweblogic, freemius 
     2Contributors: netweblogic 
    33Tags: google, SEO, yahoo, tags, webmaster tools, meta, meta tags, ogp, open graph, twitter cards 
    44Text Domain: meta-tag-manager 
    55Requires at least: 3.6 
    6 Tested up to: 4.7 
    7 Stable tag: 2.0.2 
     6Tested up to: 4.7.2 
     7Stable tag: 2.1 
    88 
    99Easily add and manage custom meta tags to various parts of your site or on individual posts, such as Yahoo and Google verification tags. 
     
    31311. Activate the plugin through the 'Plugins' menu in WordPress 
    32321. Go to *Settings > Meta Tag Manager* 
    33 1. Start adding Meta Tags! 
     331. Start adding Meta Tags! See the FAQ for  
    3434 
    3535== Frequently Asked Questions == 
     36 
     37= OK, I've installed the plugin, how and where do I start adding meta tags? = 
     38 
     39You can manage your meta tags in two areas of your WordPress dashboard. 
     40 
     41* Within Settings > Meta Tag Manager. 
     42 
     43*The general settings page is where you can add tags that appear on various areas of your site, such as your front page, archive pages, category/taxonomy pages, etc. Each tag you create can be assigned to a specific are of the site.* 
     44 
     45* On specific post type pages. 
     46 
     47*When editing a post, page, or other CPT (such as an event, product, etc.) you can add meta tags that will only be displayed on that item's page. The Meta Tag Manager will be available as an individual meta box.* 
     48 
     49= I don't see the Meta Tag Manager meta box when editing a page on my site = 
     50 
     51This may be because your editing a CPT and it's not selected within our settings page for Meta Tag Management. See next question for more information. 
     52 
     53= How do I enable/disable Meta Tag Manager for specific Custom Post Types (CPTs)? = 
     54 
     55By default (since 2.1) all custom post types are enabled, previous versions only had posts/pages enabled. If you install a plugin that introduces a new CPT, that also needs to be added, as it is not added automatically. 
     56 
     57You can add or remove this via Settings > Meta Tag Manager > General Options (tab). You'll see an input box containing a list of already enabled CPTs and you can click the input box to show and select other available CPTs to include, or click the X next to the CPT you wish to remove. 
     58 
     59= I'm stuck, or have a suggestion. = 
    3660 
    3761Please visit our <a href="https://wordpress.org/support/plugin/meta-tag-manager">support forums</a> if you have any questions. 
     
    4670 
    4771== Changelog == 
     72= 2.1 = 
     73* removed freemius insights 
     74* changed default instllation to include all CPTs 
     75* fixed PHP warning when mtm_data is missing during initial installation 
     76* changed sanitization of content attribute when http-equiv="Link", allowing for prefetch rules 
     77 
    4878= 2.0.2 = 
    4979* fixed front page meta tags not showing if using a static front page 
Note: See TracChangeset for help on using the changeset viewer.