reGenerate Thumbnails Advanced - Version 1.1.5

Version Description

Download this release

Release Info

Developer turcuciprian
Plugin Icon 128x128 reGenerate Thumbnails Advanced
Version 1.1.5
Comparing to
See all releases

Code changes from version 1.1.4 to 1.1.5

Files changed (3) hide show
  1. abExport.php +46 -43
  2. readme.txt +8 -2
  3. 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('ab_admin_notice_success')) {
7
- function ab_admin_notice_success()
8
- {
9
- if (!is_plugin_active('admin-builder/admin-builder.php')) {
10
- $pluginInstalled = false;
11
- if (!function_exists('get_plugins')) {
12
- require_once ABSPATH.'wp-admin/includes/plugin.php';
13
- }
14
- $allPlugins = get_plugins();
15
- foreach ($allPlugins as $key => $value) {
16
- if ($key === 'admin-builder/admin_builder.php') {
17
- $pluginInstalled = true;
18
- }
 
 
 
 
 
 
 
 
19
  # code...
20
- }
21
- if (isset($_GET['action']) && $_GET['action'] === 'install-plugin' && isset($_GET['plugin']) && $_GET['plugin'] === 'admin-builder') {
22
- return;
23
- }
24
- if ($pluginInstalled) {
25
- //check if plugin is activated:
26
- $abError = true;
27
- $url = admin_url();
 
 
 
28
 
29
- echo '<div class="notice notice-error is-dismissible">';
30
- echo '<h3>Step 3(final): Activate Admin Builder!</h3>';
31
- echo '<p>';
32
- echo 'To get the full functionality , activate Admin Builder from the <a href="'.$url.'/plugins.php"><span class="button-primary">plugins directory</span></a>.';
33
- echo '</p>';
34
- echo '</div>';
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&amp;plugin='.$plugin_name.'&amp;TB_iframe=true&amp;width=600&amp;height=550')).'" class="thickbox" title="More info about '.$plugin_name.'"><span class="button-primary">Install '.$plugin_name.'</span></a>';
46
 
47
- echo $install_link;
48
- echo '</p>';
49
- echo '</div>';
50
- }
 
 
51
  }
52
- add_action('admin_notices', 'ab_admin_notice_success');
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&amp;plugin='.$plugin_name.'&amp;TB_iframe=true&amp;width=600&amp;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.4
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.4
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