Version Description
- Changed constructor so the localization files are initialized with the plugin.
Download this release
Release Info
Developer | Rincewind |
Plugin | WP Realtime Sitemap |
Version | 1.4.7.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.7.1 to 1.4.7.2
- readme.txt +3 -0
- wp-realtime-sitemap.php +9 -4
readme.txt
CHANGED
@@ -107,6 +107,9 @@ I would be very grateful if someone could translate my plugin to other languages
|
|
107 |
|
108 |
== Changelog ==
|
109 |
|
|
|
|
|
|
|
110 |
= 1.4.7.1 =
|
111 |
* Fixed some duplication errors in the language files.
|
112 |
* Russian translation kindly done by ssvictors.
|
107 |
|
108 |
== Changelog ==
|
109 |
|
110 |
+
= 1.4.7.2 =
|
111 |
+
* Changed constructor so the localization files are initialized with the plugin.
|
112 |
+
|
113 |
= 1.4.7.1 =
|
114 |
* Fixed some duplication errors in the language files.
|
115 |
* Russian translation kindly done by ssvictors.
|
wp-realtime-sitemap.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: WP Realtime Sitemap
|
5 |
Plugin URI: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/
|
6 |
Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap show="all"]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
|
7 |
-
Version: 1.4.7.
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
@@ -29,6 +29,9 @@ License: GPL2
|
|
29 |
if (!class_exists('WPRealtimeSitemap')) {
|
30 |
class WPRealtimeSitemap {
|
31 |
function WPRealtimeSitemap() { //constructor
|
|
|
|
|
|
|
32 |
// Add Meta
|
33 |
add_filter('plugin_row_meta', array(&$this, 'addMeta'), 10, 2);
|
34 |
|
@@ -47,9 +50,6 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
47 |
|
48 |
$options = get_option('plugin_wp_realtime_sitemap_settings');
|
49 |
|
50 |
-
// Localization
|
51 |
-
load_plugin_textdomain('wp-realtime-sitemap', false, dirname(plugin_basename(__FILE__)) . '/language');
|
52 |
-
|
53 |
// Install Default Settings
|
54 |
register_activation_hook( __FILE__, array(&$this, 'installSettings') );
|
55 |
|
@@ -98,6 +98,11 @@ if (!class_exists('WPRealtimeSitemap')) {
|
|
98 |
return $help;
|
99 |
}
|
100 |
|
|
|
|
|
|
|
|
|
|
|
101 |
function addOptions() {
|
102 |
add_options_page(__('WP Realtime Sitemap Options', 'wp-realtime-sitemap'), __('WP Realtime Sitemap', 'wp-realtime-sitemap'), 'manage_options', basename(__FILE__), array(&$this, '_optionsForm'));
|
103 |
}
|
4 |
Plugin Name: WP Realtime Sitemap
|
5 |
Plugin URI: http://www.daniel-tweedy.co.uk/redir/wp-realtime-sitemap-home/
|
6 |
Description: Adds a sitemap to your Wordpress blog that is always up-to-date. Add `[wp-realtime-sitemap show="all"]` to any page or post and the site map will be added there. Use Settings->WP Realtime Sitemap to set options.
|
7 |
+
Version: 1.4.7.2
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
29 |
if (!class_exists('WPRealtimeSitemap')) {
|
30 |
class WPRealtimeSitemap {
|
31 |
function WPRealtimeSitemap() { //constructor
|
32 |
+
// Add Init
|
33 |
+
add_action('init', array(&$this, 'addInit'));
|
34 |
+
|
35 |
// Add Meta
|
36 |
add_filter('plugin_row_meta', array(&$this, 'addMeta'), 10, 2);
|
37 |
|
50 |
|
51 |
$options = get_option('plugin_wp_realtime_sitemap_settings');
|
52 |
|
|
|
|
|
|
|
53 |
// Install Default Settings
|
54 |
register_activation_hook( __FILE__, array(&$this, 'installSettings') );
|
55 |
|
98 |
return $help;
|
99 |
}
|
100 |
|
101 |
+
function addInit() {
|
102 |
+
// Localization
|
103 |
+
load_plugin_textdomain('wp-realtime-sitemap', false, dirname(plugin_basename(__FILE__)) . '/language');
|
104 |
+
}
|
105 |
+
|
106 |
function addOptions() {
|
107 |
add_options_page(__('WP Realtime Sitemap Options', 'wp-realtime-sitemap'), __('WP Realtime Sitemap', 'wp-realtime-sitemap'), 'manage_options', basename(__FILE__), array(&$this, '_optionsForm'));
|
108 |
}
|