PluginProbe ʕ •ᴥ•ʔ
Meta Tag Manager / 2.2
Meta Tag Manager v2.2
trunk 0.2 0.3 0.4 0.5 1.0 1.1 1.2 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.3 3.0 3.0.2 3.1 3.2 3.3
meta-tag-manager / mtm-update.php
meta-tag-manager Last commit date
css 5 years ago js 5 years ago languages 10 years ago meta-tag-manager-admin.php 5 years ago meta-tag-manager.php 5 years ago mtm-admin-settings.php 9 years ago mtm-builder.php 5 years ago mtm-encodings.php 9 years ago mtm-tag-admin.php 9 years ago mtm-tag.php 9 years ago mtm-update.php 9 years ago readme.txt 5 years ago
mtm-update.php
26 lines
1 <?php
2 if( defined('MTM_VERSION') ){
3 //coming in from MTM 1.x we change the values to something else
4 if( !get_option('mtm_version') ){
5 $mtm_data = get_option('mtm_data', array());
6 $new_mtm_data = array();
7 foreach($mtm_data as $mtm_tag){
8 $new_tag = array(
9 'value' => $mtm_tag[0],
10 'content' => $mtm_tag[1],
11 'reference' => $mtm_tag[2],
12 'type' => 'name'
13 );
14 if( !empty($mtm_tag[3]) ){
15 $new_tag['location'] = 'home';
16 }else{
17 $new_tag['location'] = 'all';
18 }
19 $new_mtm_data[] = $new_tag;
20 }
21 update_option('mtm_data', $new_mtm_data);
22 update_option('mtm_custom', array('post-types'=>get_post_types()));
23 update_option('mtm_shiny_update_notice', 1);
24 }
25 update_option('mtm_version', MTM_VERSION);
26 }