Changeset 1825359
- Timestamp:
- 02/20/2018 02:35:32 PM (8 years ago)
- Location:
- woorocks-magic-content/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
woorocks-magic-content.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woorocks-magic-content/trunk/readme.txt
r1824211 r1825359 130 130 Fixed the error in the admin panel and also hopefully makes crash with some plugins not happen anymore. 131 131 132 = 1.0.14 = 133 Added funtion to disable plugin in admin areas. 134 132 135 == Upgrade Notice == 133 136 … … 173 176 = 1.0.13 = 174 177 Fixed the error in the admin panel and also hopefully makes crash with some plugins not happen anymore. 178 179 = 1.0.14 = 180 Added funtion to disable plugin in admin areas. -
woorocks-magic-content/trunk/woorocks-magic-content.php
r1824211 r1825359 4 4 * Plugin URI: http://woorocks.com 5 5 * Description: WooRocks Magic Content lets you control output of content created inside Elementor Page Builder Sections using criterias like User has to be logged in or member of a certain role in WordPress to view the section. 6 * Version: 1.0.1 36 * Version: 1.0.14 7 7 * Author: Andreas Kviby 8 8 * Text Domain: woorocks-magic-content … … 78 78 } 79 79 80 81 80 libxml_use_internal_errors(false); 82 81 … … 94 93 95 94 $GLOBALS['woorocks-roles'] = get_wp_roles(); 95 96 $request_uri = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH ); 97 $is_admin = strpos( $request_uri, '/wp-admin/' ); 98 96 99 97 100 add_action( 'plugins_loaded', 'woorocks_load_plugin_textdomain' ); … … 267 270 } 268 271 } 269 if (!isset($_GET['elementor']) && !isset($_POST['_nonce']) || (!is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )) ){ 272 // add filter in front pages only 273 if( false === $is_admin ){ 270 274 add_action('wp_loaded', 'woorocks_buffer_start'); 271 275 add_action('shutdown', 'woorocks_buffer_end');
Note: See TracChangeset
for help on using the changeset viewer.