Plugin Directory

Changeset 1912677


Ignore:
Timestamp:
07/21/2018 09:50:56 AM (8 years ago)
Author:
cdnsun
Message:

Disable rewrite in page/post preview mode

Location:
cdnsun/trunk/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cdnsun/trunk/inc/class-cdnsun-options.php

    r1912152 r1912677  
    3939    }
    4040   
    41     // in (array) $data here are links on this page: /wp-admin/plugins.php for this plugin, such as "Deactivate"
     41    // in (array) $data there are links on this page: /wp-admin/plugins.php for this plugin, such as "Deactivate"
    4242    public static function add_options_page_link($data)
    4343    {       
  • cdnsun/trunk/inc/class-cdnsun.php

    r1912152 r1912677  
    7878            return true;
    7979        }
    80         if($options['cdn_url'] == get_option('home')) 
     80        if($options['cdn_url'] == get_option('home'))
    8181        {
    8282            return true;
     
    8989        {
    9090            $options['excludes'] = CDNSUN_DEFAULT_EXCLUDES;
     91        }
     92        // = in page/post preview mode
     93        if(is_admin_bar_showing() && !empty($_GET['preview']))
     94        {
     95            return true;
    9196        }
    9297       
Note: See TracChangeset for help on using the changeset viewer.