Changeset 2531627
- Timestamp:
- 05/14/2021 10:15:47 AM (5 years ago)
- Location:
- simple-meta-tags
- Files:
-
- 5 added
- 2 edited
-
tags/1.5 (added)
-
tags/1.5/readme.txt (added)
-
tags/1.5/screenshot-1.jpg (added)
-
tags/1.5/screenshot-2.jpg (added)
-
tags/1.5/simple-meta-tags.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/simple-meta-tags.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-meta-tags/trunk/readme.txt
r2329065 r2531627 3 3 Tags: SEO, Meta tags, keywords, description, hotscot 4 4 Requires at least: 3.1 5 Tested up to: 5. 4.25 Tested up to: 5.7.2 6 6 Stable tag: trunk 7 7 License: GPLv2 or later … … 75 75 Code updates for newer PHP versions 76 76 77 = 1.5 = 78 Code updates 79 77 80 == Screenshots == 78 81 -
simple-meta-tags/trunk/simple-meta-tags.php
r2329065 r2531627 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. 45 Version: 1.5 6 6 Author: Hotscot 7 7 … … 129 129 <th scope="row"><label for="post_meta_title">Title</label></th> 130 130 <td> 131 <input placeholder="Example Co. Blog" size="50" type="text" name="post_meta_title" id="post_meta_title" value="<?php echo get_option('post_meta_title'); ?>" />131 <input placeholder="Example Co. Blog" size="50" type="text" name="post_meta_title" id="post_meta_title" value="<?php echo $this->returnFormat(get_option('post_meta_title')); ?>" /> 132 132 <p class="description"><strong>Note:</strong> If you leave the title empty it will use the default WordPress Title: <em>blog name | post title</em></p> 133 133 </td> … … 136 136 <tr valign="top"> 137 137 <th scope="row"><label for="post_meta_description">Description</label></th> 138 <td><input placeholder="Our blog about X, Y, and Z" size="50" type="text" name="post_meta_description" id="post_meta_description" value="<?php echo get_option('post_meta_description'); ?>" /></td>138 <td><input placeholder="Our blog about X, Y, and Z" size="50" type="text" name="post_meta_description" id="post_meta_description" value="<?php echo $this->returnFormat(get_option('post_meta_description')); ?>" /></td> 139 139 </tr> 140 140 141 141 <tr valign="top"> 142 142 <th scope="row"><label for="post_meta_keywords">Keywords</label></th> 143 <td><input placeholder="Blog, X, Y, Z" size="50" type="text" name="post_meta_keywords" id="post_meta_keywords" value="<?php echo get_option('post_meta_keywords'); ?>" /></td>143 <td><input placeholder="Blog, X, Y, Z" size="50" type="text" name="post_meta_keywords" id="post_meta_keywords" value="<?php echo $this->returnFormat(get_option('post_meta_keywords')); ?>" /></td> 144 144 </tr> 145 145 … … 196 196 if(!isset($_POST['scmesbmt'])) return $post_id; 197 197 198 $scmTitle = isset($_POST['scmetatitle']) ? $_POST['scmetatitle']: '';199 $scmDesc = isset($_POST['scmetadescription']) ? $_POST['scmetadescription']: '';200 $scmKey = isset($_POST['scmetakeywords']) ? $_POST['scmetakeywords']: '';198 $scmTitle = isset($_POST['scmetatitle']) ? sanitize_text_field($_POST['scmetatitle']) : ''; 199 $scmDesc = isset($_POST['scmetadescription']) ? sanitize_text_field($_POST['scmetadescription']) : ''; 200 $scmKey = isset($_POST['scmetakeywords']) ? sanitize_text_field($_POST['scmetakeywords']) : ''; 201 201 202 202 update_post_meta($post_id, '_sc_m_title', $scmTitle);
Note: See TracChangeset
for help on using the changeset viewer.