PluginProbe
Adminimize / 1.9.1
Adminimize v1.9.1
1.11.14 1.11.13 1.11.1 1.11.10 1.11.11 1.11.12 1.11.2 1.11.3 1.11.4 1.11.5 1.11.6 1.11.7 1.11.8 1.11.9 1.3 1.4.7 1.6 1.7.12 1.7.13 1.7.14 1.7.15 1.7.16 1.7.17 1.7.18 1.7.19 All 53 releases
← All changes | inc-setup/widget.php +2 -7 1.11.10 → 1.9.1 View file →
@@ -4,9 +4,8 @@
4 4 * @subpackage Widget Setup
5 5 * @author Frank Bültge
6 6 * @since 1.8.1 01/10/2013
7 7 */
8 -
9 8 if ( ! function_exists( 'add_action' ) ) {
10 9 echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
11 10 exit;
12 11 }
@@ -11,16 +10,11 @@
11 10 exit;
12 11 }
13 12
14 13 if ( ! is_admin() ) {
15 - return;
14 + return NULL;
16 15 }
17 16
18 -// If is AJAX Call.
19 -if ( defined('DOING_AJAX') && DOING_AJAX ) {
20 - return;
21 -}
22 -
23 17 function _mw_adminimize_get_all_widgets() {
24 18
25 19 global $wp_widget_factory;
26 20
@@ -45,8 +39,9 @@
45 39 return $sidebars_widgets;
46 40 }
47 41
48 42 function _mw_adminimize_get_registered_sidebars() {
43 +
49 44 global $wp_registered_sidebars;
50 45
51 46 return $wp_registered_sidebars;
52 47 }