Version Description
Renamed Gen. Post Thumbnails to Auto Post Thumbnail and moved it under Settings menu.
Download this release
Release Info
Developer | adityamooley |
Plugin | Auto Post Thumbnail |
Version | 3.1 |
Comparing to | |
See all releases |
Code changes from version 3.0 to 3.1
- auto-post-thumbnail.php +4 -4
- readme.txt +5 -2
auto-post-thumbnail.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Auto Post Thumbnail
|
5 |
Plugin URI: http://www.sanisoft.com/blog/2010/04/19/wordpress-plugin-automatic-post-thumbnail/
|
6 |
Description: Automatically generate the Post Thumbnail from the first image in post only if Post Thumbnail is not set manually.
|
7 |
-
Version: 3.
|
8 |
Author: Aditya Mooley <adityamooley@sanisoft.com>
|
9 |
Author URI: http://www.sanisoft.com/blog/author/adityamooley/
|
10 |
*/
|
@@ -36,7 +36,7 @@ add_action('wp_ajax_generatepostthumbnail', 'apt_ajax_process_post'); // Hook to
|
|
36 |
|
37 |
// Register the management page
|
38 |
function apt_add_admin_menu() {
|
39 |
-
|
40 |
}
|
41 |
|
42 |
/**
|
@@ -112,7 +112,7 @@ function apt_interface() {
|
|
112 |
if ( rt_images.length ) {
|
113 |
genPostThumb( rt_images.shift() );
|
114 |
} else {
|
115 |
-
$("#message").html("<p><strong><?php echo js_escape( sprintf('All done! Processed %d
|
116 |
$("#message").show();
|
117 |
}
|
118 |
|
@@ -153,7 +153,7 @@ function apt_interface() {
|
|
153 |
* @return void
|
154 |
*/
|
155 |
function apt_admin_enqueues($hook_suffix) {
|
156 |
-
if ( '
|
157 |
return;
|
158 |
}
|
159 |
|
4 |
Plugin Name: Auto Post Thumbnail
|
5 |
Plugin URI: http://www.sanisoft.com/blog/2010/04/19/wordpress-plugin-automatic-post-thumbnail/
|
6 |
Description: Automatically generate the Post Thumbnail from the first image in post only if Post Thumbnail is not set manually.
|
7 |
+
Version: 3.1
|
8 |
Author: Aditya Mooley <adityamooley@sanisoft.com>
|
9 |
Author URI: http://www.sanisoft.com/blog/author/adityamooley/
|
10 |
*/
|
36 |
|
37 |
// Register the management page
|
38 |
function apt_add_admin_menu() {
|
39 |
+
add_options_page('Auto Post Thumbnail', 'Auto Post Thumbnail', 'manage_options', 'generate-post-thumbnails', 'apt_interface');
|
40 |
}
|
41 |
|
42 |
/**
|
112 |
if ( rt_images.length ) {
|
113 |
genPostThumb( rt_images.shift() );
|
114 |
} else {
|
115 |
+
$("#message").html("<p><strong><?php echo js_escape( sprintf('All done! Processed %d posts.', $count ) ); ?></strong></p>");
|
116 |
$("#message").show();
|
117 |
}
|
118 |
|
153 |
* @return void
|
154 |
*/
|
155 |
function apt_admin_enqueues($hook_suffix) {
|
156 |
+
if ( 'settings_page_generate-post-thumbnails' != $hook_suffix ) {
|
157 |
return;
|
158 |
}
|
159 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: adityamooley
|
|
3 |
Tags: Post, thumbnail, automatic, posts, image, images, admin
|
4 |
Requires at least: 2.9.1
|
5 |
Tested up to: 3.0.1
|
6 |
-
Stable tag: 3.
|
7 |
|
8 |
Automatically generate the Post Thumbnail from the first image in post only if Post Thumbnail is not set manually.
|
9 |
|
@@ -23,7 +23,10 @@ The plugin also provides a Batch Processing capability to generate post thumbnai
|
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
-
|
|
|
|
|
|
|
27 |
* Added Batch Processing capability to generate post thumbnails for already published posts.
|
28 |
* A new menu item **Gen. Post Thumbnails** is added under Tools menu.
|
29 |
|
3 |
Tags: Post, thumbnail, automatic, posts, image, images, admin
|
4 |
Requires at least: 2.9.1
|
5 |
Tested up to: 3.0.1
|
6 |
+
Stable tag: 3.1
|
7 |
|
8 |
Automatically generate the Post Thumbnail from the first image in post only if Post Thumbnail is not set manually.
|
9 |
|
23 |
|
24 |
== Changelog ==
|
25 |
|
26 |
+
= 3.1 =
|
27 |
+
Renamed **Gen. Post Thumbnails** to **Auto Post Thumbnail** and moved it under Settings menu.
|
28 |
+
|
29 |
+
= 3.0 =
|
30 |
* Added Batch Processing capability to generate post thumbnails for already published posts.
|
31 |
* A new menu item **Gen. Post Thumbnails** is added under Tools menu.
|
32 |
|