Plugin Directory

Changeset 666216


Ignore:
Timestamp:
02/11/2013 10:29:04 AM (13 years ago)
Author:
DaganLev
Message:

got rid of some warnings on WordPress debug = true

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

Legend:

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

    r445701 r666216  
    33Tags: SEO, Meta tags, keywords, description, hotscot
    44Requires at least: 3.1
    5 Tested up to: 3.1
     5Tested up to: 3.5
    66Stable tag: trunk
    77
     
    5252Special character support for Cyrillic chars using a UTF-8 compatible converter
    5353
     54= 1.2.4 =
     55fixed index warning
     56
    5457== Upgrade Notice ==
    5558Special character support for Cyrillic chars using a UTF-8 compatible converter
  • simple-meta-tags/trunk/simple-meta-tags.php

    r445701 r666216  
    33Plugin Name: Simple Meta Tags
    44Description: Allows you to set global meta tags and customize on each individual page/post.
    5 Version: 1.2.3
     5Version: 1.2.4
    66Author: Hotscot
    77
     
    3333            if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id;
    3434           
    35             add_post_meta($post_id, '_sc_m_title', $_POST['scmetatitle'], true) or update_post_meta($post_id, '_sc_m_title', $_POST['scmetatitle']);
    36             add_post_meta($post_id, '_sc_m_description', $_POST['scmetadescription'], true) or update_post_meta($post_id, '_sc_m_description', $_POST['scmetadescription']);
    37             add_post_meta($post_id, '_sc_m_keywords', $_POST['scmetakeywords'], true) or update_post_meta($post_id, '_sc_m_keywords', $_POST['scmetakeywords']);
     35            $scmTitle = isset($_POST['scmetatitle']) ? $_POST['scmetatitle'] : '';
     36            $scmDesc = isset($_POST['scmetadescription']) ? $_POST['scmetadescription'] : '';
     37            $scmKey = isset($_POST['scmetakeywords']) ? $_POST['scmetakeywords'] : '';
     38            add_post_meta($post_id, '_sc_m_title', $scmTitle, true) or update_post_meta($post_id, '_sc_m_title', $scmTitle);
     39            add_post_meta($post_id, '_sc_m_description', $scmDesc, true) or update_post_meta($post_id, '_sc_m_description', $scmDesc);
     40            add_post_meta($post_id, '_sc_m_keywords', $scmKey, true) or update_post_meta($post_id, '_sc_m_keywords', $scmKey);
    3841        }
    3942       
Note: See TracChangeset for help on using the changeset viewer.