Plugin Directory

Changeset 1825359


Ignore:
Timestamp:
02/20/2018 02:35:32 PM (8 years ago)
Author:
andreaskviby
Message:

version 1.0.14

Location:
woorocks-magic-content/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • woorocks-magic-content/trunk/readme.txt

    r1824211 r1825359  
    130130Fixed the error in the admin panel and also hopefully makes crash with some plugins not happen anymore.
    131131
     132= 1.0.14 =
     133Added funtion to disable plugin in admin areas.
     134
    132135== Upgrade Notice ==
    133136
     
    173176= 1.0.13 =
    174177Fixed the error in the admin panel and also hopefully makes crash with some plugins not happen anymore.
     178
     179= 1.0.14 =
     180Added funtion to disable plugin in admin areas.
  • woorocks-magic-content/trunk/woorocks-magic-content.php

    r1824211 r1825359  
    44 * Plugin URI: http://woorocks.com
    55 * 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.13
     6 * Version: 1.0.14
    77 * Author: Andreas Kviby
    88 * Text Domain: woorocks-magic-content
     
    7878}
    7979
    80 
    8180libxml_use_internal_errors(false);
    8281
     
    9493
    9594$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
    9699
    97100add_action( 'plugins_loaded', 'woorocks_load_plugin_textdomain' );
     
    267270  }
    268271}
    269 if (!isset($_GET['elementor']) && !isset($_POST['_nonce']) || (!is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX )) ){
     272// add filter in front pages only
     273if( false === $is_admin ){
    270274  add_action('wp_loaded', 'woorocks_buffer_start');
    271275  add_action('shutdown', 'woorocks_buffer_end');
Note: See TracChangeset for help on using the changeset viewer.