Version Description
Download this release
Release Info
Developer | uberdose |
Plugin | All in One SEO Pack |
Version | 1.2.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.2.5.1 to 1.2.5.2
- all_in_one_seo_pack.php +54 -2
all_in_one_seo_pack.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: All in One SEO Pack
|
5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
7 |
-
Version: 1.2.5.
|
8 |
Author: uberdose
|
9 |
Author URI: http://wp.uberdose.com/
|
10 |
*/
|
@@ -28,7 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
28 |
|
29 |
class All_in_One_SEO_Pack {
|
30 |
|
31 |
-
var $version = "1.2.5.
|
32 |
|
33 |
/**
|
34 |
* Number of words to be used (max) for generating an excerpt.
|
@@ -293,6 +293,56 @@ class All_in_One_SEO_Pack {
|
|
293 |
}
|
294 |
}
|
295 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
function add_meta_tags_textinput() {
|
297 |
global $post;
|
298 |
$keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
|
@@ -549,11 +599,13 @@ add_action('init', array($aiosp, 'init_textdomain'));
|
|
549 |
add_action('simple_edit_form', array($aiosp, 'add_meta_tags_textinput'));
|
550 |
add_action('edit_form_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
551 |
add_action('edit_page_form', array($aiosp, 'add_meta_tags_page_textinput'));
|
|
|
552 |
|
553 |
add_action('edit_post', array($aiosp, 'post_meta_tags'));
|
554 |
add_action('publish_post', array($aiosp, 'post_meta_tags'));
|
555 |
add_action('save_post', array($aiosp, 'post_meta_tags'));
|
556 |
add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
|
|
|
557 |
|
558 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
559 |
|
4 |
Plugin Name: All in One SEO Pack
|
5 |
Plugin URI: http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/
|
6 |
Description: Out-of-the-box SEO for your Wordpress blog.
|
7 |
+
Version: 1.2.5.2
|
8 |
Author: uberdose
|
9 |
Author URI: http://wp.uberdose.com/
|
10 |
*/
|
28 |
|
29 |
class All_in_One_SEO_Pack {
|
30 |
|
31 |
+
var $version = "1.2.5.2";
|
32 |
|
33 |
/**
|
34 |
* Number of words to be used (max) for generating an excerpt.
|
293 |
}
|
294 |
}
|
295 |
|
296 |
+
function edit_category($id) {
|
297 |
+
$awmp_edit = $_POST["aiosp_edit"];
|
298 |
+
/*
|
299 |
+
if (isset($awmp_edit) && !empty($awmp_edit)) {
|
300 |
+
$keywords = $_POST["aiosp_keywords"];
|
301 |
+
$description = $_POST["aiosp_description"];
|
302 |
+
$title = $_POST["aiosp_title"];
|
303 |
+
|
304 |
+
delete_post_meta($id, 'keywords');
|
305 |
+
delete_post_meta($id, 'description');
|
306 |
+
delete_post_meta($id, 'title');
|
307 |
+
|
308 |
+
if (isset($keywords) && !empty($keywords)) {
|
309 |
+
add_post_meta($id, 'keywords', $keywords);
|
310 |
+
}
|
311 |
+
if (isset($description) && !empty($description)) {
|
312 |
+
add_post_meta($id, 'description', $description);
|
313 |
+
}
|
314 |
+
if (isset($title) && !empty($title)) {
|
315 |
+
add_post_meta($id, 'title', $title);
|
316 |
+
}
|
317 |
+
}
|
318 |
+
*/
|
319 |
+
}
|
320 |
+
|
321 |
+
function edit_category_form() {
|
322 |
+
global $post;
|
323 |
+
$keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
|
324 |
+
$title = stripslashes(get_post_meta($post->ID, 'title', true));
|
325 |
+
$description = stripslashes(get_post_meta($post->ID, 'description', true));
|
326 |
+
?>
|
327 |
+
<input value="aiosp_edit" type="hidden" name="aiosp_edit" />
|
328 |
+
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
329 |
+
<tr>
|
330 |
+
<th width="33%" scope="row" valign="top">
|
331 |
+
<a href="http://wp.uberdose.com/2007/03/24/all-in-one-seo-pack/">All in One SEO Pack</a>
|
332 |
+
</th>
|
333 |
+
</tr>
|
334 |
+
<tr>
|
335 |
+
<th width="33%" scope="row" valign="top"><label for="aiosp_title"><?php _e('Title:', 'all_in_one_seo_pack') ?></label></th>
|
336 |
+
<td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="70"/></td>
|
337 |
+
</tr>
|
338 |
+
<tr>
|
339 |
+
<th width="33%" scope="row" valign="top"><label for="aiosp_keywords"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></label></th>
|
340 |
+
<td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="70"/></td>
|
341 |
+
</tr>
|
342 |
+
</table>
|
343 |
+
<?php
|
344 |
+
}
|
345 |
+
|
346 |
function add_meta_tags_textinput() {
|
347 |
global $post;
|
348 |
$keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
|
599 |
add_action('simple_edit_form', array($aiosp, 'add_meta_tags_textinput'));
|
600 |
add_action('edit_form_advanced', array($aiosp, 'add_meta_tags_textinput'));
|
601 |
add_action('edit_page_form', array($aiosp, 'add_meta_tags_page_textinput'));
|
602 |
+
//add_action('edit_category_form', array($aiosp, 'edit_category_form'));
|
603 |
|
604 |
add_action('edit_post', array($aiosp, 'post_meta_tags'));
|
605 |
add_action('publish_post', array($aiosp, 'post_meta_tags'));
|
606 |
add_action('save_post', array($aiosp, 'post_meta_tags'));
|
607 |
add_action('edit_page_form', array($aiosp, 'post_meta_tags'));
|
608 |
+
//add_action('edit_category', array($aiosp, 'edit_category'));
|
609 |
|
610 |
add_action('admin_menu', array($aiosp, 'admin_menu'));
|
611 |
|