Plugin Directory

Changeset 731518


Ignore:
Timestamp:
06/25/2013 01:57:48 PM (13 years ago)
Author:
DaganLev
Message:

version 1.2.6

Location:
simple-meta-tags
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • simple-meta-tags/trunk/readme.txt

    r731378 r731518  
    5858Quick edit box saves was deleting meta tags - now fixed
    5959
     60= 1.2.6 =
     61Fix on main check box settings
     62
    6063== Upgrade Notice ==
    61 Quick edit box saves was deleting meta tags - now fixed
     64Fix on main check box settings
    6265
    6366== Screenshots ==
  • simple-meta-tags/trunk/simple-meta-tags.php

    r731378 r731518  
    33Plugin Name: Simple Meta Tags
    44Description: Allows you to set global meta tags and customize on each individual page/post.
    5 Version: 1.2.5
     5Version: 1.2.6
    66Author: Hotscot
    77
     
    132132    function register_default_meta_settings()
    133133    {
    134         register_setting( 'meta-tag-settings', 'smt-init-v11' );   
    135134        register_setting( 'meta-tag-settings', 'page_meta_title' );     
    136135        register_setting( 'meta-tag-settings', 'page_meta_keywords' );     
     
    143142        register_setting( 'meta-tag-settings', 'use_pages_meta_data' );     
    144143        register_setting( 'meta-tag-settings', 'use_posts_meta_data' );
    145        
    146         if(get_option('smt-init-v11')!='done'){
    147             update_option('use_pages_meta_data','on');
    148             update_option('use_posts_meta_data','on');
    149             update_option('smt-init-v11','done');
    150            
    151             if(get_option('meta_title')!=''){
    152                 update_option('page_meta_title',get_option('meta_title'));
    153                 update_option('post_meta_title',get_option('meta_title'));
    154                 update_option('meta_title','');
    155             }
    156             if(get_option('meta_description')!=''){
    157                 update_option('page_meta_description',get_option('meta_description'));
    158                 update_option('post_meta_description',get_option('meta_description'));
    159                 update_option('meta_description','');
    160             }
    161             if(get_option('meta_keywords')!=''){
    162                 update_option('page_meta_keywords',get_option('meta_keywords'));
    163                 update_option('post_meta_keywords',get_option('meta_keywords'));
    164                 update_option('meta_keywords','');
    165             }
     144
     145           
     146        if(get_option('meta_title')!=''){
     147            update_option('page_meta_title',get_option('meta_title'));
     148            update_option('post_meta_title',get_option('meta_title'));
     149            update_option('meta_title','');
     150        }
     151        if(get_option('meta_description')!=''){
     152            update_option('page_meta_description',get_option('meta_description'));
     153            update_option('post_meta_description',get_option('meta_description'));
     154            update_option('meta_description','');
     155        }
     156        if(get_option('meta_keywords')!=''){
     157            update_option('page_meta_keywords',get_option('meta_keywords'));
     158            update_option('post_meta_keywords',get_option('meta_keywords'));
     159            update_option('meta_keywords','');
    166160        }
    167161    }
     
    181175        <form method="post" action="options.php">
    182176            <?php settings_fields( 'meta-tag-settings' ); ?>
    183            
    184177            <table>
    185178                <tr valign="top"><td colspan="2"><h2>Pages</h2></td></tr>
Note: See TracChangeset for help on using the changeset viewer.