Version Description
- Fixed minor bug, where content output would be before whatever was put into the wysiwyg editor, instead of after.
- Wrapped date for posts in a span tag so easier for this to be styled.
Download this release
Release Info
Developer | Rincewind |
Plugin | WP Realtime Sitemap |
Version | 1.4.2 |
Comparing to | |
See all releases |
Code changes from version 1.4.1 to 1.4.2
- readme.txt +4 -0
- wp-realtime-sitemap.php +8 -12
readme.txt
CHANGED
@@ -90,6 +90,10 @@ Please see the installation page for information about the short code usage for
|
|
90 |
|
91 |
== Changelog ==
|
92 |
|
|
|
|
|
|
|
|
|
93 |
= 1.4.1 =
|
94 |
* Minor security update added nonce field to the form, to check request came from your site and not someone elses site who was using the same plugin.
|
95 |
|
90 |
|
91 |
== Changelog ==
|
92 |
|
93 |
+
= 1.4.2 =
|
94 |
+
* Fixed minor bug, where content output would be before whatever was put into the wysiwyg editor, instead of after.
|
95 |
+
* Wrapped date for posts in a span tag so easier for this to be styled.
|
96 |
+
|
97 |
= 1.4.1 =
|
98 |
* Minor security update added nonce field to the form, to check request came from your site and not someone elses site who was using the same plugin.
|
99 |
|
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.
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
@@ -218,7 +218,7 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
|
|
218 |
the_post();
|
219 |
|
220 |
if ($show_date == 'yes')
|
221 |
-
$extra = ' ' . get_the_date();
|
222 |
|
223 |
$posts .= '<li><a href="' . get_permalink() . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';
|
224 |
}
|
@@ -270,31 +270,27 @@ function wp_realtime_sitemap($atts, $content=null, $code='') {
|
|
270 |
}
|
271 |
|
272 |
if ($show == 'pages') {
|
273 |
-
|
274 |
}
|
275 |
|
276 |
if ($show == 'posts') {
|
277 |
-
|
278 |
}
|
279 |
|
280 |
if ($show == 'archives') {
|
281 |
-
|
282 |
}
|
283 |
|
284 |
if ($show == 'categories') {
|
285 |
-
|
286 |
}
|
287 |
|
288 |
if ($show == 'tags') {
|
289 |
-
|
290 |
}
|
291 |
|
292 |
if ($show == 'all') {
|
293 |
-
|
294 |
-
echo $posts;
|
295 |
-
echo $archives;
|
296 |
-
echo $categories;
|
297 |
-
echo $tags;
|
298 |
}
|
299 |
}
|
300 |
} // End wp_realtime_sitemap()
|
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.2
|
8 |
Author: Daniel Tweedy
|
9 |
Author URI: http://www.daniel-tweedy.co.uk/
|
10 |
License: GPL2
|
218 |
the_post();
|
219 |
|
220 |
if ($show_date == 'yes')
|
221 |
+
$extra = ' <span>' . get_the_date() . '</span>';
|
222 |
|
223 |
$posts .= '<li><a href="' . get_permalink() . '" title="' . sprintf(esc_attr__('Permalink to %s', 'wp-realtime-sitemap'), the_title_attribute('echo=0')) . '" rel="bookmark">' . get_the_title() . '</a>' . $extra . '</li>';
|
224 |
}
|
270 |
}
|
271 |
|
272 |
if ($show == 'pages') {
|
273 |
+
return $pages;
|
274 |
}
|
275 |
|
276 |
if ($show == 'posts') {
|
277 |
+
return $posts;
|
278 |
}
|
279 |
|
280 |
if ($show == 'archives') {
|
281 |
+
return $archives;
|
282 |
}
|
283 |
|
284 |
if ($show == 'categories') {
|
285 |
+
return $categories;
|
286 |
}
|
287 |
|
288 |
if ($show == 'tags') {
|
289 |
+
return $tags;
|
290 |
}
|
291 |
|
292 |
if ($show == 'all') {
|
293 |
+
return $pages . $posts . $archives . $categories . $tags;
|
|
|
|
|
|
|
|
|
294 |
}
|
295 |
}
|
296 |
} // End wp_realtime_sitemap()
|