All in One SEO Pack - Version 1.3.5.1

Version Description

Download this release

Release Info

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

Code changes from version 1.3.4 to 1.3.5.1

Files changed (1) hide show
  1. all_in_one_seo_pack.php +25 -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.3.4
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.3.4";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
@@ -155,6 +155,16 @@ class All_in_One_SEO_Pack {
155
  } else {
156
  $meta_string = '';
157
  }
 
 
 
 
 
 
 
 
 
 
158
  $meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
159
  }
160
 
@@ -669,6 +679,7 @@ class All_in_One_SEO_Pack {
669
  update_option('aiosp_archive_title_format', $_POST['aiosp_archive_title_format']);
670
  update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
671
  update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
 
672
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
673
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
674
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
@@ -809,6 +820,17 @@ href="http://wp.uberdose.com/2007/10/02/translations-for-all-in-one-seo-pack/"><
809
  </td>
810
  </tr>
811
 
 
 
 
 
 
 
 
 
 
 
 
812
  <tr>
813
  <th scope="row" style="text-align:right; vertical-align:top;">
814
  <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">
@@ -886,6 +908,7 @@ add_option("aiosp_category_title_format", '%category_title% | %blog_title%', 'Al
886
  add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
887
  add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
888
  add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
 
889
 
890
  $aiosp = new All_in_One_SEO_Pack();
891
  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.3.5.1
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
28
 
29
  class All_in_One_SEO_Pack {
30
 
31
+ var $version = "1.3.5.1";
32
 
33
  /**
34
  * Max numbers of chars in auto-generated description.
155
  } else {
156
  $meta_string = '';
157
  }
158
+
159
+ // description format
160
+ $description_format = get_option('aiosp_description_format');
161
+ if (!isset($description_format) || empty($description_format)) {
162
+ $description_format = "%description%";
163
+ }
164
+ $description = str_replace('%description%', $description, $description_format);
165
+ $description = str_replace('%blog_title%', get_bloginfo('name'), $description);
166
+ $description = str_replace('%blog_description%', get_bloginfo('description'), $description);
167
+
168
  $meta_string .= sprintf("<meta name=\"description\" content=\"%s\"/>", $description);
169
  }
170
 
679
  update_option('aiosp_archive_title_format', $_POST['aiosp_archive_title_format']);
680
  update_option('aiosp_tag_title_format', $_POST['aiosp_tag_title_format']);
681
  update_option('aiosp_search_title_format', $_POST['aiosp_search_title_format']);
682
+ update_option('aiosp_description_format', $_POST['aiosp_description_format']);
683
  update_option('aiosp_use_categories', $_POST['aiosp_use_categories']);
684
  update_option('aiosp_category_noindex', $_POST['aiosp_category_noindex']);
685
  update_option('aiosp_archive_noindex', $_POST['aiosp_archive_noindex']);
820
  </td>
821
  </tr>
822
 
823
+ <tr>
824
+ <th scope="row" style="text-align:right; vertical-align:top;">
825
+ <a target="_blank" title="<?php _e('Help for Description Format', 'all_in_one_seo_pack')?>" href="http://wp.uberdose.com/2007/05/11/all-in-one-seo-pack-help/#descriptionformat">
826
+ <?php _e('Description Format:', 'all_in_one_seo_pack')?>
827
+ </a>
828
+ </td>
829
+ <td>
830
+ <input size="59" name="aiosp_description_format" value="<?php echo stripcslashes(get_option('aiosp_description_format')); ?>"/>
831
+ </td>
832
+ </tr>
833
+
834
  <tr>
835
  <th scope="row" style="text-align:right; vertical-align:top;">
836
  <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">
908
  add_option("aiosp_archive_title_format", '%date% | %blog_title%', 'All in One SEO Plugin Archive Title Format', 'yes');
909
  add_option("aiosp_tag_title_format", '%tag% | %blog_title%', 'All in One SEO Plugin Tag Title Format', 'yes');
910
  add_option("aiosp_search_title_format", '%search% | %blog_title%', 'All in One SEO Plugin Search Title Format', 'yes');
911
+ add_option("aiosp_description_format", '%description%', 'All in One SEO Plugin Description Format', 'yes');
912
 
913
  $aiosp = new All_in_One_SEO_Pack();
914
  add_action('wp_head', array($aiosp, 'wp_head'));