Version Description
Download this release
Release Info
Developer | turcuciprian |
Plugin | reGenerate Thumbnails Advanced |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- abExport.php +46 -43
- readme.txt +8 -2
- regenerate-thumbnails-advanced.php +1 -1
abExport.php
CHANGED
@@ -3,54 +3,57 @@
|
|
3 |
|
4 |
$abError = false;
|
5 |
include_once ABSPATH.'wp-admin/includes/plugin.php';
|
6 |
-
if (!function_exists('
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
# code...
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
//plugin is activated
|
36 |
-
} else {
|
37 |
-
$abError = true;
|
38 |
-
echo '<div class="notice notice-error is-dismissible">';
|
39 |
-
echo '<h3>Step 2: Install Admin Builder</h3>';
|
40 |
-
echo '<p>';
|
41 |
-
echo 'To get the full functionality , install Admin Builder.';
|
42 |
-
echo '</p>';
|
43 |
-
echo '<p>';
|
44 |
-
$plugin_name = 'admin-builder';
|
45 |
-
$install_link = '<a href="'.esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin='.$plugin_name.'&TB_iframe=true&width=600&height=550')).'" class="thickbox" title="More info about '.$plugin_name.'"><span class="button-primary">Install '.$plugin_name.'</span></a>';
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
|
|
|
|
51 |
}
|
52 |
-
|
53 |
}
|
|
|
54 |
}
|
55 |
if (!$abError) {
|
56 |
if (!$abError) {
|
3 |
|
4 |
$abError = false;
|
5 |
include_once ABSPATH.'wp-admin/includes/plugin.php';
|
6 |
+
if (!function_exists('ab_admin_notices')) {
|
7 |
+
function ab_admin_notices()
|
8 |
+
{
|
9 |
+
$pluginInstalled = false;
|
10 |
+
include_once ABSPATH.'wp-admin/includes/plugin.php';
|
11 |
+
$pluginActive = is_plugin_active('admin-builder/admin_builder.php');
|
12 |
+
echo $pluginActive;
|
13 |
+
// exit;
|
14 |
+
|
15 |
+
if (isset($_GET['action']) && $_GET['action'] === 'install-plugin' && isset($_GET['plugin']) && $_GET['plugin'] === 'admin-builder') {
|
16 |
+
return;
|
17 |
+
}
|
18 |
+
|
19 |
+
if (!function_exists('get_plugins')) {
|
20 |
+
require_once ABSPATH.'wp-admin/includes/plugin.php';
|
21 |
+
}
|
22 |
+
$allPlugins = get_plugins();
|
23 |
+
foreach ($allPlugins as $key => $value) {
|
24 |
+
if ($key === 'admin-builder/admin_builder.php') {
|
25 |
+
$pluginInstalled = true;
|
26 |
+
}
|
27 |
# code...
|
28 |
+
}
|
29 |
+
|
30 |
+
if (!$pluginInstalled) {
|
31 |
+
echo '<div class="notice notice-error is-dismissible">';
|
32 |
+
echo '<h3>Step 2: Install Admin Builder</h3>';
|
33 |
+
echo '<p>';
|
34 |
+
echo 'To get the full functionality , install Admin Builder.';
|
35 |
+
echo '</p>';
|
36 |
+
echo '<p>';
|
37 |
+
$plugin_name = 'admin-builder';
|
38 |
+
$install_link = '<a href="'.esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin='.$plugin_name.'&TB_iframe=true&width=600&height=550')).'" class="thickbox" title="More info about '.$plugin_name.'"><span class="button-primary">Install '.$plugin_name.'</span></a>';
|
39 |
|
40 |
+
echo $install_link;
|
41 |
+
echo '</p>';
|
42 |
+
echo '</div>';
|
43 |
+
} else {
|
44 |
+
if (!$pluginActive) {
|
45 |
+
$url = admin_url();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
+
echo '<div class="notice notice-error is-dismissible">';
|
48 |
+
echo '<h3>Step 3(final): Activate Admin Builder!</h3>';
|
49 |
+
echo '<p>';
|
50 |
+
echo 'To get the full functionality , activate Admin Builder from the <a href="'.$url.'/plugins.php"><span class="button-primary">plugins directory</span></a>.';
|
51 |
+
echo '</p>';
|
52 |
+
echo '</div>';
|
53 |
}
|
54 |
+
}
|
55 |
}
|
56 |
+
add_action('admin_notices', 'ab_admin_notices');
|
57 |
}
|
58 |
if (!$abError) {
|
59 |
if (!$abError) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: regenerate, thumbnails, advanced, easy, day, weeek, month
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.4.1
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -115,6 +115,9 @@ Important bugfixes
|
|
115 |
=1.1.4=
|
116 |
Extra bugfixes
|
117 |
|
|
|
|
|
|
|
118 |
|
119 |
== Upgrade Notice ==
|
120 |
|
@@ -170,4 +173,7 @@ Important bugfixes
|
|
170 |
Important bugfixes
|
171 |
|
172 |
=1.1.4=
|
173 |
-
Extra bugfixes
|
|
|
|
|
|
4 |
Tags: regenerate, thumbnails, advanced, easy, day, weeek, month
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 4.4.1
|
7 |
+
Stable tag: 1.1.5
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
115 |
=1.1.4=
|
116 |
Extra bugfixes
|
117 |
|
118 |
+
=1.1.5=
|
119 |
+
admin-builder.php turned to admin_builder.php on admin builder verification check
|
120 |
+
|
121 |
|
122 |
== Upgrade Notice ==
|
123 |
|
173 |
Important bugfixes
|
174 |
|
175 |
=1.1.4=
|
176 |
+
Extra bugfixes
|
177 |
+
|
178 |
+
=1.1.5=
|
179 |
+
nothing effected in db
|
regenerate-thumbnails-advanced.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: reGenerate Thumbnails - advanced
|
4 |
Plugin URI: http://turcuciprian.com
|
5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
6 |
-
Version: 1.1.
|
7 |
Author: turcuciprian
|
8 |
Author URI: http://turcuciprian.com
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: reGenerate Thumbnails - advanced
|
4 |
Plugin URI: http://turcuciprian.com
|
5 |
Description: A plugin that makes regenerating thumbnails even easier than before and more flexible.
|
6 |
+
Version: 1.1.5
|
7 |
Author: turcuciprian
|
8 |
Author URI: http://turcuciprian.com
|
9 |
License: GPLv2 or later
|