Version Description
Added a notification message with a link when a theme is switched
=
Download this release
Release Info
| Developer | turcuciprian |
| Plugin | |
| Version | 1.5.0 |
| Comparing to | |
| See all releases | |
Code changes from version 1.4.6 to 1.5.0
- readme.txt +6 -1
- regenerate-thumbnails-advanced.php +16 -1
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
| 4 |
Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced, easy, intuitive, media, oneclick, singleclick, image, images, pdf
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.8
|
| 7 |
-
Stable tag: 1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -151,6 +151,8 @@ Removed stats, added donate button
|
|
| 151 |
= 1.4.6 =
|
| 152 |
Removed donate button
|
| 153 |
|
|
|
|
|
|
|
| 154 |
|
| 155 |
|
| 156 |
== Upgrade Notice ==
|
|
@@ -254,3 +256,6 @@ Does not impact functionality
|
|
| 254 |
|
| 255 |
= 1.4.6 =
|
| 256 |
Does not impact functionality
|
|
|
|
|
|
|
|
|
| 4 |
Tags: thumbnail, thumbnails, regenerate , easy, day, week, month, advanced, easy, intuitive, media, oneclick, singleclick, image, images, pdf
|
| 5 |
Requires at least: 4.0
|
| 6 |
Tested up to: 4.8
|
| 7 |
+
Stable tag: 1.5.0
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 151 |
= 1.4.6 =
|
| 152 |
Removed donate button
|
| 153 |
|
| 154 |
+
= 1.5.0 =
|
| 155 |
+
Added a notification message with a link when a theme is switched
|
| 156 |
|
| 157 |
|
| 158 |
== Upgrade Notice ==
|
| 256 |
|
| 257 |
= 1.4.6 =
|
| 258 |
Does not impact functionality
|
| 259 |
+
|
| 260 |
+
= 1.5.0 =
|
| 261 |
+
Does not impact functionality
|
regenerate-thumbnails-advanced.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: reGenerate Thumbnails - advanced
|
| 4 |
Plugin URI: http://ciprianturcu.com
|
| 5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
| 6 |
-
Version: 1.
|
| 7 |
Author: turcuciprian
|
| 8 |
Author URI: http://ciprianturcu.com
|
| 9 |
License: GPLv2 or later
|
|
@@ -160,3 +160,18 @@ class cc
|
|
| 160 |
/* var @cc cc */
|
| 161 |
$cc = new cc();
|
| 162 |
$cc->start();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
Plugin Name: reGenerate Thumbnails - advanced
|
| 4 |
Plugin URI: http://ciprianturcu.com
|
| 5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
| 6 |
+
Version: 1.5.0
|
| 7 |
Author: turcuciprian
|
| 8 |
Author URI: http://ciprianturcu.com
|
| 9 |
License: GPLv2 or later
|
| 160 |
/* var @cc cc */
|
| 161 |
$cc = new cc();
|
| 162 |
$cc->start();
|
| 163 |
+
|
| 164 |
+
add_action("after_switch_theme", "mytheme_do_something");
|
| 165 |
+
|
| 166 |
+
function mytheme_do_something () {
|
| 167 |
+
|
| 168 |
+
add_action( 'admin_notices', 'sample_admin_notice__success' );
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
function sample_admin_notice__success() {
|
| 172 |
+
?>
|
| 173 |
+
<div class="notice notice-success is-dismissible">
|
| 174 |
+
<p><?php _e( 'You switched themes! Would you like to regenerate thumbnails so that all your thumbnails work on your theme? <a href="options-general.php?page=regenerate_thumbnails_advanced">YES</a>', 'sample-text-domain' ); ?></p>
|
| 175 |
+
</div>
|
| 176 |
+
<?php
|
| 177 |
+
}
|
