All in One SEO Pack - Version 0.6.3.5

Version Description

Download this release

Release Info

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

Code changes from version 0.6.3.3 to 0.6.3.5

Files changed (1) hide show
  1. all_in_one_seo_pack.php +19 -6
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: 0.6.3.3
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
@@ -27,7 +27,7 @@ Author URI: http://wp.uberdose.com/
27
 
28
  class All_in_One_SEO_Pack {
29
 
30
- var $version = "0.6.3.3";
31
 
32
  /**
33
  * Number of words to be used (max) for generating an excerpt.
@@ -83,6 +83,14 @@ class All_in_One_SEO_Pack {
83
  }
84
 
85
  if (isset($description) && strlen($description) > $this->minimum_excerpt_length) {
 
 
 
 
 
 
 
 
86
  if (isset($meta_string)) {
87
  $meta_string .= "\n";
88
  }
@@ -254,6 +262,7 @@ class All_in_One_SEO_Pack {
254
  global $post;
255
  $keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
256
  $title = stripslashes(get_post_meta($post->ID, 'title', true));
 
257
  ?>
258
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
259
  <table style="margin-bottom:40px; margin-top:30px;">
@@ -267,6 +276,10 @@ class All_in_One_SEO_Pack {
267
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
268
  </tr>
269
  <tr>
 
 
 
 
270
  <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
271
  <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
272
  </tr>
@@ -292,12 +305,12 @@ class All_in_One_SEO_Pack {
292
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
293
  </tr>
294
  <tr>
295
- <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
296
- <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
297
  </tr>
298
  <tr>
299
- <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
300
- <td><input value="<?php echo $description ?>" type="text" name="aiosp_description" size="80"/></td>
301
  </tr>
302
  </table>
303
  <?php
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: 0.6.3.5
8
  Author: uberdose
9
  Author URI: http://wp.uberdose.com/
10
  */
27
 
28
  class All_in_One_SEO_Pack {
29
 
30
+ var $version = "0.6.3.5";
31
 
32
  /**
33
  * Number of words to be used (max) for generating an excerpt.
83
  }
84
 
85
  if (isset($description) && strlen($description) > $this->minimum_excerpt_length) {
86
+ $description = str_replace('"', '', $description);
87
+
88
+ // replace newlines on mac / windows?
89
+ $description = str_replace("\r\n", ' ', $description);
90
+
91
+ // maybe linux uses this alone
92
+ $description = str_replace("\n", ' ', $description);
93
+
94
  if (isset($meta_string)) {
95
  $meta_string .= "\n";
96
  }
262
  global $post;
263
  $keywords = stripslashes(get_post_meta($post->ID, 'keywords', true));
264
  $title = stripslashes(get_post_meta($post->ID, 'title', true));
265
+ $description = stripslashes(get_post_meta($post->ID, 'description', true));
266
  ?>
267
  <input value="aiosp_edit" type="hidden" name="aiosp_edit" />
268
  <table style="margin-bottom:40px; margin-top:30px;">
276
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
277
  </tr>
278
  <tr>
279
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
280
+ <td><textarea name="aiosp_description" rows="1" cols="78"><?php echo $description ?></textarea></td>
281
+ </tr>
282
+ <tr>
283
  <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
284
  <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
285
  </tr>
305
  <td><input value="<?php echo $title ?>" type="text" name="aiosp_title" size="80"/></td>
306
  </tr>
307
  <tr>
308
+ <th scope="row" style="text-align:right;"><?php _e('Description:', 'all_in_one_seo_pack') ?></th>
309
+ <td><textarea name="aiosp_description" rows="1" cols="78"><?php echo $description ?></textarea></td>
310
  </tr>
311
  <tr>
312
+ <th scope="row" style="text-align:right;"><?php _e('Keywords (comma separated):', 'all_in_one_seo_pack') ?></th>
313
+ <td><input value="<?php echo $keywords ?>" type="text" name="aiosp_keywords" size="80"/></td>
314
  </tr>
315
  </table>
316
  <?php