Changeset 666216
- Timestamp:
- 02/11/2013 10:29:04 AM (13 years ago)
- Location:
- simple-meta-tags
- Files:
-
- 5 added
- 2 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/readme.txt (added)
-
tags/1.2.4/screenshot-1.jpg (added)
-
tags/1.2.4/screenshot-2.jpg (added)
-
tags/1.2.4/simple-meta-tags.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-meta-tags.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-meta-tags/trunk/readme.txt
r445701 r666216 3 3 Tags: SEO, Meta tags, keywords, description, hotscot 4 4 Requires at least: 3.1 5 Tested up to: 3. 15 Tested up to: 3.5 6 6 Stable tag: trunk 7 7 … … 52 52 Special character support for Cyrillic chars using a UTF-8 compatible converter 53 53 54 = 1.2.4 = 55 fixed index warning 56 54 57 == Upgrade Notice == 55 58 Special character support for Cyrillic chars using a UTF-8 compatible converter -
simple-meta-tags/trunk/simple-meta-tags.php
r445701 r666216 3 3 Plugin Name: Simple Meta Tags 4 4 Description: Allows you to set global meta tags and customize on each individual page/post. 5 Version: 1.2. 35 Version: 1.2.4 6 6 Author: Hotscot 7 7 … … 33 33 if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) return $post_id; 34 34 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); 38 41 } 39 42
Note: See TracChangeset
for help on using the changeset viewer.