WP Realtime Sitemap - Version 1.5.5

Version Description

  • Fixed reported issue of not being able to change "Header Settings".
  • Fixed broken donation link.
  • Removed themefuse buttons.
  • Changed hook so settings are only removed on uninstall and not on deactivation.
Download this release

Release Info

Developer Rincewind
Plugin Icon wp plugin WP Realtime Sitemap
Version 1.5.5
Comparing to
See all releases

Code changes from version 1.5.4 to 1.5.5

Files changed (2) hide show
  1. readme.txt +11 -5
  2. wp-realtime-sitemap.php +13 -19
readme.txt CHANGED
@@ -1,12 +1,12 @@
1
  === WP Realtime Sitemap ===
2
  Contributors: Rincewind
3
- Donate link: http://goo.gl/ddoa5
4
  Tags: seo, navigation, site, map, sitemap, sitemaps, posts, pages, custom, post, types, wpmu, wordpress, multisite, multiuser, bilingual, i18n, l10n, language, multilanguage, multilingual, translation, qtranslate
5
  Requires at least: 3.0
6
- Tested up to: 3.2
7
- Stable tag: trunk
8
 
9
- A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format without any need for template modification or html/php knowledge in a page, my plugin does not create a .xml for any search engines this is outside of what this plugin was designed to do.
10
 
11
  == Description ==
12
 
@@ -77,7 +77,7 @@ Please see the [FAQ](http://goo.gl/QNiRH "FAQ") and [Other Notes](http://goo.gl/
77
 
78
  = I would like to make a donation how can I do this? =
79
 
80
- You can make a Pay Pal donation by clicking [here](http://goo.gl/ddoa5 "PayPal donation"), or click on "Donate to this plugin" in the right hand side box where it says FYI, your donation will be very gratefully received thank you!
81
 
82
  = What should I call the page that I add the sitemap to? =
83
 
@@ -151,6 +151,12 @@ Full details of producing a translation can be found in this [guide to translati
151
 
152
  == Changelog ==
153
 
 
 
 
 
 
 
154
  = 1.5.4 =
155
  * Fixed issue with the custom post types.
156
  * Correct the shortcode mentioned in the description.
1
  === WP Realtime Sitemap ===
2
  Contributors: Rincewind
3
+ Donate link: http://goo.gl/mmUuGj
4
  Tags: seo, navigation, site, map, sitemap, sitemaps, posts, pages, custom, post, types, wpmu, wordpress, multisite, multiuser, bilingual, i18n, l10n, language, multilanguage, multilingual, translation, qtranslate
5
  Requires at least: 3.0
6
+ Tested up to: 4.5.3
7
+ Stable tag: 1.5.5
8
 
9
+ A sitemap plugin to make it easier for your site to show all your pages, posts, archives, categories and tags in an easy to read format.
10
 
11
  == Description ==
12
 
77
 
78
  = I would like to make a donation how can I do this? =
79
 
80
+ You can make a Pay Pal donation by clicking [here](http://goo.gl/mmUuGj "PayPal donation"), or click on "Donate to this plugin" in the right hand side box where it says FYI, your donation will be very gratefully received thank you!
81
 
82
  = What should I call the page that I add the sitemap to? =
83
 
151
 
152
  == Changelog ==
153
 
154
+ = 1.5.5 =
155
+ * Fixed reported issue of not being able to change "Header Settings".
156
+ * Fixed broken donation link.
157
+ * Removed themefuse buttons.
158
+ * Changed hook so settings are only removed on uninstall and not on deactivation.
159
+
160
  = 1.5.4 =
161
  * Fixed issue with the custom post types.
162
  * Correct the shortcode mentioned in the description.
wp-realtime-sitemap.php CHANGED
@@ -4,7 +4,7 @@
4
  Plugin Name: WP Realtime Sitemap
5
  Plugin URI: http://goo.gl/ri9xU
6
  Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
- Version: 1.5.4
8
  Author: Daniel Tweedy
9
  Author URI: http://goo.gl/jdOfL
10
  License: GPL2
@@ -26,7 +26,7 @@ License: GPL2
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
- define('WPRealtimeSitemap_Version', '1.5.4');
30
 
31
  if (!class_exists('WPRealtimeSitemap')) {
32
  class WPRealtimeSitemap {
@@ -69,7 +69,7 @@ if (!class_exists('WPRealtimeSitemap')) {
69
  register_activation_hook(__FILE__, array(&$this, 'installSettings'));
70
 
71
  // Uninstall Settings
72
- register_deactivation_hook(__FILE__, array(&$this, 'uninstallSettings'));
73
  }
74
 
75
  function addInit() {
@@ -87,7 +87,7 @@ if (!class_exists('WPRealtimeSitemap')) {
87
  array_unshift($links, $faq_link);
88
  $support_link = '<a href="http://goo.gl/kosme">' . __('Support', 'wp-realtime-sitemap') . '</a>';
89
  array_unshift($links, $support_link);
90
- $donate_link = '<a href="http://goo.gl/ddoa5">' . __('Donate with PayPal', 'wp-realtime-sitemap') . '</a>';
91
  array_unshift($links, $donate_link);
92
  $amazon_link = '<a href="http://goo.gl/yrM92">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a>';
93
  array_unshift($links, $amazon_link);
@@ -110,10 +110,10 @@ if (!class_exists('WPRealtimeSitemap')) {
110
  if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
111
  $help .= '<h5>' . __('WP Realtime Sitemap Help', 'wp-realtime-sitemap') . '</h5><div class="metabox-prefs"><p>';
112
  $help .= '<a href="http://goo.gl/yrM92">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a><br />';
113
- $help .= '<a href="http://goo.gl/ddoa5">' . __('Donate with PayPal', 'wp-realtime-sitemap').'</a><br />';
114
  $help .= '<a href="http://goo.gl/kosme">' . __('Support', 'wp-realtime-sitemap').'</a><br />';
115
  $help .= '<a href="http://goo.gl/QNiRH">' . __('FAQ', 'wp-realtime-sitemap').'</a><br />';
116
- $help .= '<a href="http://goo.gl/bRO8F">' . __('Home Page', 'wp-realtime-sitemap').'</a><br />';
117
  $help .= '<a href="http://goo.gl/Jqrg6">' . __('Contact Me', 'wp-realtime-sitemap') . '</a><br />';
118
  $help .= __('Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap') . '</p></div>';
119
  }
@@ -184,7 +184,7 @@ if (!class_exists('WPRealtimeSitemap')) {
184
  add_settings_field('page_exclude', __('Exclude IDs', 'wp-realtime-sitemap'), array($this, '_formTextInput'), __FILE__, 'page_settings', array('dbfield' => 'page_exclude', 'section' => 'page'));
185
  add_settings_field('page_depth', __('Hierarchy Depth', 'wp-realtime-sitemap'), array($this, '_formSelectInput'), __FILE__, 'page_settings', array('dbfield' => 'page_depth', 'section' => 'page'));
186
  add_settings_field('page_show_date', __('Display Date', 'wp-realtime-sitemap'), array($this, '_formSelectInput'), __FILE__, 'page_settings', array('dbfield' => 'page_show_date', 'section' => 'page'));
187
- // NOTE: this is currently not working, see http://core.trac.wordpress.org/ticket/10745
188
  // add_settings_field('page_number', __('Limit', 'wp-realtime-sitemap'), array($this, '_formTextInput'), __FILE__, 'page_settings', array('dbfield' => 'page_number', 'section' => 'page'));
189
 
190
  add_settings_section('post_settings', __('Post & Custom Post Type Settings', 'wp-realtime-sitemap'), array($this, 'post_section_text'), __FILE__);
@@ -1355,12 +1355,12 @@ if (!class_exists('WPRealtimeSitemap')) {
1355
  }
1356
 
1357
  // HEADER SETTINGS
1358
- $plugin_wp_realtime_sitemap_settings['menu_header'] = mysql_real_escape_string($inputs['menu_header']);
1359
- $plugin_wp_realtime_sitemap_settings['pages_header'] = mysql_real_escape_string($inputs['pages_header']);
1360
- $plugin_wp_realtime_sitemap_settings['posts_header'] = mysql_real_escape_string($inputs['posts_header']);
1361
- $plugin_wp_realtime_sitemap_settings['archives_header'] = mysql_real_escape_string($inputs['archives_header']);
1362
- $plugin_wp_realtime_sitemap_settings['categories_header'] = mysql_real_escape_string($inputs['categories_header']);
1363
- $plugin_wp_realtime_sitemap_settings['tags_header'] = mysql_real_escape_string($inputs['tags_header']);
1364
 
1365
  // DISPLAY SETTINGS
1366
  if(!in_array($inputs['show_menu'], $validInputs['show_menu']['valid'])) {
@@ -1516,12 +1516,6 @@ if (!class_exists('WPRealtimeSitemap')) {
1516
  <img border="1" src="<?php echo $this->plugin_base_url; ?>/images/donate.jpg" usemap="#donatemap" />
1517
  </div>
1518
 
1519
- <div style="width:450px; border:1px solid #dddddd; background:#fff; padding:20px 20px; float: left; margin-left: 20px;">
1520
- <h3 style="margin:0; padding:0;"><?php _e('ThemeFuse Original WP Themes', 'wp-realtime-sitemap'); ?></h3>
1521
- <p><?php echo sprintf(esc_attr__('If you are interested in buying an original wp theme I would recommend %s. They make some amazing wp themes, that have a cool 1 click auto install feature and excellent after care support services. Check out some of their themes!', 'wp-realtime-sitemap'), '<a href="http://goo.gl/zhJTn" title="' . __('ThemeFuse', 'wp-realtime-sitemap') . '">' . __('ThemeFuse', 'wp-realtime-sitemap') . '</a>'); ?></p>
1522
- <a style="border:none;" href="http://goo.gl/zhJTn"><img style="border:none;" src="<?php echo $this->plugin_base_url; ?>/images/themefuse.jpg" /></a>
1523
- </div>
1524
-
1525
  <br style="clear: both;" />
1526
 
1527
  <p><?php _e('This plugin can easily be styled by using the following ids below should you need to, if you require more flexibility than this please feel free to suggest something', 'wp-realtime-sitemap'); ?></p>
4
  Plugin Name: WP Realtime Sitemap
5
  Plugin URI: http://goo.gl/ri9xU
6
  Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
7
+ Version: 1.5.5
8
  Author: Daniel Tweedy
9
  Author URI: http://goo.gl/jdOfL
10
  License: GPL2
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
+ define('WPRealtimeSitemap_Version', '1.5.5');
30
 
31
  if (!class_exists('WPRealtimeSitemap')) {
32
  class WPRealtimeSitemap {
69
  register_activation_hook(__FILE__, array(&$this, 'installSettings'));
70
 
71
  // Uninstall Settings
72
+ register_uninstall_hook(__FILE__, array(&$this, 'uninstallSettings'));
73
  }
74
 
75
  function addInit() {
87
  array_unshift($links, $faq_link);
88
  $support_link = '<a href="http://goo.gl/kosme">' . __('Support', 'wp-realtime-sitemap') . '</a>';
89
  array_unshift($links, $support_link);
90
+ $donate_link = '<a href="http://goo.gl/mmUuGj">' . __('Donate with PayPal', 'wp-realtime-sitemap') . '</a>';
91
  array_unshift($links, $donate_link);
92
  $amazon_link = '<a href="http://goo.gl/yrM92">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a>';
93
  array_unshift($links, $amazon_link);
110
  if ( $screen == 'settings_page_wp-realtime-sitemap' ) {
111
  $help .= '<h5>' . __('WP Realtime Sitemap Help', 'wp-realtime-sitemap') . '</h5><div class="metabox-prefs"><p>';
112
  $help .= '<a href="http://goo.gl/yrM92">' . __('Amazon Wishlist', 'wp-realtime-sitemap') . '</a><br />';
113
+ $help .= '<a href="http://goo.gl/mmUuGj">' . __('Donate with PayPal', 'wp-realtime-sitemap').'</a><br />';
114
  $help .= '<a href="http://goo.gl/kosme">' . __('Support', 'wp-realtime-sitemap').'</a><br />';
115
  $help .= '<a href="http://goo.gl/QNiRH">' . __('FAQ', 'wp-realtime-sitemap').'</a><br />';
116
+ $help .= '<a href="http://goo.gl/spLNI9">' . __('Home Page', 'wp-realtime-sitemap').'</a><br />';
117
  $help .= '<a href="http://goo.gl/Jqrg6">' . __('Contact Me', 'wp-realtime-sitemap') . '</a><br />';
118
  $help .= __('Please read the plugin information and FAQ, before asking a question.', 'wp-realtime-sitemap') . '</p></div>';
119
  }
184
  add_settings_field('page_exclude', __('Exclude IDs', 'wp-realtime-sitemap'), array($this, '_formTextInput'), __FILE__, 'page_settings', array('dbfield' => 'page_exclude', 'section' => 'page'));
185
  add_settings_field('page_depth', __('Hierarchy Depth', 'wp-realtime-sitemap'), array($this, '_formSelectInput'), __FILE__, 'page_settings', array('dbfield' => 'page_depth', 'section' => 'page'));
186
  add_settings_field('page_show_date', __('Display Date', 'wp-realtime-sitemap'), array($this, '_formSelectInput'), __FILE__, 'page_settings', array('dbfield' => 'page_show_date', 'section' => 'page'));
187
+ // NOTE: this is currently not working, see https://core.trac.wordpress.org/ticket/10745 and https://core.trac.wordpress.org/ticket/10230
188
  // add_settings_field('page_number', __('Limit', 'wp-realtime-sitemap'), array($this, '_formTextInput'), __FILE__, 'page_settings', array('dbfield' => 'page_number', 'section' => 'page'));
189
 
190
  add_settings_section('post_settings', __('Post & Custom Post Type Settings', 'wp-realtime-sitemap'), array($this, 'post_section_text'), __FILE__);
1355
  }
1356
 
1357
  // HEADER SETTINGS
1358
+ $plugin_wp_realtime_sitemap_settings['menu_header'] = $inputs['menu_header'];
1359
+ $plugin_wp_realtime_sitemap_settings['pages_header'] = $inputs['pages_header'];
1360
+ $plugin_wp_realtime_sitemap_settings['posts_header'] = $inputs['posts_header'];
1361
+ $plugin_wp_realtime_sitemap_settings['archives_header'] = $inputs['archives_header'];
1362
+ $plugin_wp_realtime_sitemap_settings['categories_header'] = $inputs['categories_header'];
1363
+ $plugin_wp_realtime_sitemap_settings['tags_header'] = $inputs['tags_header'];
1364
 
1365
  // DISPLAY SETTINGS
1366
  if(!in_array($inputs['show_menu'], $validInputs['show_menu']['valid'])) {
1516
  <img border="1" src="<?php echo $this->plugin_base_url; ?>/images/donate.jpg" usemap="#donatemap" />
1517
  </div>
1518
 
 
 
 
 
 
 
1519
  <br style="clear: both;" />
1520
 
1521
  <p><?php _e('This plugin can easily be styled by using the following ids below should you need to, if you require more flexibility than this please feel free to suggest something', 'wp-realtime-sitemap'); ?></p>