PS Auto Sitemap - Version 1.1.9

Version Description

Download this release

Release Info

Developer jim912
Plugin Icon wp plugin PS Auto Sitemap
Version 1.1.9
Comparing to
See all releases

Code changes from version 1.1.8 to 1.1.9

Files changed (2) hide show
  1. ps_auto_sitemap.php +11 -22
  2. readme.txt +7 -2
ps_auto_sitemap.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: PS Auto Sitemap
4
  Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
5
  Description: Auto generator of a customizable and designed sitemap page.
6
  Author: Hitoshi Omagari
7
- Version: 1.1.8
8
  Author URI: http://www.warna.info/
9
  */
10
 
@@ -29,25 +29,20 @@ class ps_auto_sitemap {
29
  var $option;
30
 
31
 
32
- function ps_auto_sitemap() {
33
- $this->__construct();
34
- }
35
-
36
-
37
  function __construct() {
38
  global $wp_version;
39
  $this->wp_version = $wp_version;
40
 
41
- add_action( 'init' , array( &$this, 'ps_auto_sitemap_init') );
42
- add_action( 'publish_post' , array( &$this, 'delete_sitemap_cache') );
43
- add_action( 'publish_page' , array( &$this, 'delete_sitemap_cache') );
44
- add_filter( 'the_content' , array( &$this, 'replace_sitemap_content') );
45
- add_action( 'admin_menu' , array( &$this, 'add_sitemap_setting_menu') );
46
- add_action( 'wp_head' , array( &$this, 'print_sitemap_prepare_css' ) );
47
  if ( version_compare( $wp_version, '2.6', '>=' ) ) {
48
- add_action( 'admin_print_styles' , array( &$this, 'print_sitemap_admin_css' ) );
49
  } else {
50
- add_action( 'admin_head' , array( &$this, 'print_sitemap_admin_css' ) );
51
  }
52
  }
53
 
@@ -115,9 +110,6 @@ class ps_auto_sitemap {
115
  }
116
 
117
  $sitemap_content .= "</ul>\n";
118
- if ( ! $this->option['suppress_link'] ) {
119
- $sitemap_content .= '<address style="text-align: right; font-size: x-small;">Powered by <a href="http://www.web-strategy.jp/" target="_blank">Prime Strategy Co.,LTD.</a></address>' . "\n";
120
- }
121
 
122
  if ( ( $cache_dir = $this->check_cache_dir() ) && $this->option['use_cache'] ) {
123
  $this->check_htaccess( $cache_dir );
@@ -242,7 +234,7 @@ ORDER BY `posts`.`post_date` DESC";
242
 
243
 
244
  function add_sitemap_setting_menu() {
245
- add_options_page( 'PS Auto Sitemap setting', 'PS Auto Sitemap', 'manage_options', basename(__FILE__), array( &$this, 'sitemap_setting') );
246
  }
247
 
248
 
@@ -453,11 +445,8 @@ ORDER BY `posts`.`post_date` DESC";
453
  <th><?php _e( 'Using cache', 'ps_auto_sitemap' ); ?></th>
454
  <td><input type="checkbox" name="ps_sitemap_use_cache" id="ps_sitemap_use_cache" value="1"<?php if ( $this->option['use_cache'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_use_cache"><?php _e( 'use', 'ps_auto_sitemap' ); ?></label></td>
455
  </tr>
456
- <tr>
457
- <th><?php _e( 'Hide developper link', 'ps_auto_sitemap' ); ?></th>
458
- <td><input type="checkbox" name="ps_sitemap_suppress_link" id="ps_sitemap_suppress_link" value="1"<?php if ( $this->option['suppress_link'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_suppress_link"><?php _e( 'Hide', 'ps_auto_sitemap' ); ?></label></td>
459
- </tr>
460
  </table>
 
461
  <div class="ps_sitemap_submit_buttons">
462
  <input type="submit" name="ps_sitemap_submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
463
  </div>
4
  Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
5
  Description: Auto generator of a customizable and designed sitemap page.
6
  Author: Hitoshi Omagari
7
+ Version: 1.1.9
8
  Author URI: http://www.warna.info/
9
  */
10
 
29
  var $option;
30
 
31
 
 
 
 
 
 
32
  function __construct() {
33
  global $wp_version;
34
  $this->wp_version = $wp_version;
35
 
36
+ add_action( 'init' , array( $this, 'ps_auto_sitemap_init') );
37
+ add_action( 'publish_post', array( $this, 'delete_sitemap_cache') );
38
+ add_action( 'publish_page', array( $this, 'delete_sitemap_cache') );
39
+ add_filter( 'the_content' , array( $this, 'replace_sitemap_content') );
40
+ add_action( 'admin_menu' , array( $this, 'add_sitemap_setting_menu') );
41
+ add_action( 'wp_head' , array( $this, 'print_sitemap_prepare_css' ) );
42
  if ( version_compare( $wp_version, '2.6', '>=' ) ) {
43
+ add_action( 'admin_print_styles', array( $this, 'print_sitemap_admin_css' ) );
44
  } else {
45
+ add_action( 'admin_head' , array( $this, 'print_sitemap_admin_css' ) );
46
  }
47
  }
48
 
110
  }
111
 
112
  $sitemap_content .= "</ul>\n";
 
 
 
113
 
114
  if ( ( $cache_dir = $this->check_cache_dir() ) && $this->option['use_cache'] ) {
115
  $this->check_htaccess( $cache_dir );
234
 
235
 
236
  function add_sitemap_setting_menu() {
237
+ add_options_page( 'PS Auto Sitemap setting', 'PS Auto Sitemap', 'manage_options', basename(__FILE__), array( $this, 'sitemap_setting') );
238
  }
239
 
240
 
445
  <th><?php _e( 'Using cache', 'ps_auto_sitemap' ); ?></th>
446
  <td><input type="checkbox" name="ps_sitemap_use_cache" id="ps_sitemap_use_cache" value="1"<?php if ( $this->option['use_cache'] == '1' ) : ?> checked="checked"<?php endif; ?> /> <label for="ps_sitemap_use_cache"><?php _e( 'use', 'ps_auto_sitemap' ); ?></label></td>
447
  </tr>
 
 
 
 
448
  </table>
449
+ <input type="hidden" name="ps_sitemap_suppress_link" id="ps_sitemap_suppress_link" value="1"/>
450
  <div class="ps_sitemap_submit_buttons">
451
  <input type="submit" name="ps_sitemap_submit" class="button-primary" value="<?php _e( 'Save Changes' ); ?>" />
452
  </div>
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: jim912
3
  Tags: sitemap, post, page, seo, cms
4
  Requires at least: 2.3.1
5
- Tested up to: 3.7.1
6
- Stable tag: 1.1.8
7
 
8
  Auto generator of a customizable and designed sitemap page.
9
 
@@ -29,6 +29,11 @@ When you use WordPress as CMS of the Web site, you can expect the **effect of SE
29
  * Use or not caching sitemap content.
30
 
31
  = Latest change =
 
 
 
 
 
32
  * **1.1.8**
33
  * Compatible up to WordPress 3.7
34
  * bugfix: Deprecated error.
2
  Contributors: jim912
3
  Tags: sitemap, post, page, seo, cms
4
  Requires at least: 2.3.1
5
+ Tested up to: 4.2.2
6
+ Stable tag: 1.1.9
7
 
8
  Auto generator of a customizable and designed sitemap page.
9
 
29
  * Use or not caching sitemap content.
30
 
31
  = Latest change =
32
+ * **1.1.9**
33
+ * Compatible up to WordPress 4.2.2
34
+ * bugfix: Strict Standards error.
35
+ * change: Detele developper link option(force no link)
36
+
37
  * **1.1.8**
38
  * Compatible up to WordPress 3.7
39
  * bugfix: Deprecated error.