All in One SEO Pack - Version 1.2.6.2

Version Description

Download this release

Release Info

Developer uberdose
Plugin Icon 128x128 All in One SEO Pack
Version 1.2.6.2
Comparing to
See all releases

Code changes from version 1.2.6.1 to 1.2.6.2

Files changed (1) hide show
  1. all_in_one_seo_pack.php +24 -4
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.6.1
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.6.1";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
@@ -213,8 +213,7 @@ class All_in_One_SEO_Pack {
213
  $title_format = get_option('aiosp_page_title_format');
214
  $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
215
  $new_title = str_replace('%page_title%', $title, $new_title);
216
- $title = $new_title;
217
- $title = trim($title);
218
  $header = $this->replace_title($header, $title);
219
  } else if (function_exists('is_tag') && is_tag()) {
220
  global $utw;
@@ -223,6 +222,13 @@ class All_in_One_SEO_Pack {
223
  $tag = $tags[0]->tag;
224
  $header = $this->replace_title($header, $tag);
225
  }
 
 
 
 
 
 
 
226
  }
227
 
228
  return $header;
@@ -486,6 +492,7 @@ class All_in_One_SEO_Pack {
486
  update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
487
  update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
488
  update_option('aiosp_category_title_format', $_POST['aiosp_category_title_format']);
 
489
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
490
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
491
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
@@ -582,6 +589,18 @@ class All_in_One_SEO_Pack {
582
  <input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
583
  </td>
584
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
585
  <tr>
586
  <th scope="row" style="text-align:right; vertical-align:top;">
587
  <a target="_blank" title="<?php _e('Help for Option Categories for META keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorymetakeywords">
@@ -667,6 +686,7 @@ add_option("aiosp_generate_descriptions", 0, __('All in One SEO Plugin Autogener
667
  add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Post Title Format', 'all_in_one_seo_pack'), 'yes');
668
  add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
669
  add_option("aiosp_category_title_format", '%category_title% | %blog_title%', __('All in One SEO Plugin Category Title Format', 'all_in_one_seo_pack'), 'yes');
 
670
 
671
  $aiosp = new All_in_One_SEO_Pack();
672
  add_action('wp_head', array($aiosp, 'wp_head'));
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.6.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.6.2";
32
 
33
  /**
34
  * Number of words to be used (max) for generating an excerpt.
213
  $title_format = get_option('aiosp_page_title_format');
214
  $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
215
  $new_title = str_replace('%page_title%', $title, $new_title);
216
+ $title = trim($new_title);
 
217
  $header = $this->replace_title($header, $title);
218
  } else if (function_exists('is_tag') && is_tag()) {
219
  global $utw;
222
  $tag = $tags[0]->tag;
223
  $header = $this->replace_title($header, $tag);
224
  }
225
+ } else if (is_archive()) {
226
+ $date = wp_title('', false);
227
+ $title_format = get_option('aiosp_archive_title_format');
228
+ $new_title = str_replace('%blog_title%', get_bloginfo('name'), $title_format);
229
+ $new_title = str_replace('%date%', $date, $new_title);
230
+ $title = trim($new_title);
231
+ $header = $this->replace_title($header, $title);
232
  }
233
 
234
  return $header;
492
  update_option('aiosp_post_title_format', $_POST['aiosp_post_title_format']);
493
  update_option('aiosp_page_title_format', $_POST['aiosp_page_title_format']);
494
  update_option('aiosp_category_title_format', $_POST['aiosp_category_title_format']);
495
+ update_option('aiosp_archive_title_format', $_POST['aiosp_archive_title_format']);
496
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
497
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
498
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
589
  <input size="59" name="aiosp_category_title_format" value="<?php echo stripcslashes(get_option('aiosp_category_title_format')); ?>"/>
590
  </td>
591
  </tr>
592
+
593
+ <tr>
594
+ <th scope="row" style="text-align:right; vertical-align:top;">
595
+ <a target="_blank" title="<?php _e('Help for Archive Title Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#archivetitleformat">
596
+ <?php _e('Archive Title Format:', 'all_in_one_seo_pack')?>
597
+ </a>
598
+ </td>
599
+ <td>
600
+ <input size="59" name="aiosp_archive_title_format" value="<?php echo stripcslashes(get_option('aiosp_archive_title_format')); ?>"/>
601
+ </td>
602
+ </tr>
603
+
604
  <tr>
605
  <th scope="row" style="text-align:right; vertical-align:top;">
606
  <a target="_blank" title="<?php _e('Help for Option Categories for META keywords', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#categorymetakeywords">
686
  add_option("aiosp_post_title_format", '%post_title% | %blog_title%', __('All in One SEO Plugin Post Title Format', 'all_in_one_seo_pack'), 'yes');
687
  add_option("aiosp_page_title_format", '%page_title% | %blog_title%', __('All in One SEO Plugin Page Title Format', 'all_in_one_seo_pack'), 'yes');
688
  add_option("aiosp_category_title_format", '%category_title% | %blog_title%', __('All in One SEO Plugin Category Title Format', 'all_in_one_seo_pack'), 'yes');
689
+ add_option("aiosp_archive_title_format", '%date% | %blog_title%', __('All in One SEO Plugin Archive Title Format', 'all_in_one_seo_pack'), 'yes');
690
 
691
  $aiosp = new All_in_One_SEO_Pack();
692
  add_action('wp_head', array($aiosp, 'wp_head'));