Plugin Directory

Changeset 1912679


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

Disable rewrite in page/post preview mode

File:
1 edited

Legend:

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

    r1912677 r1912679  
    8181        {
    8282            return true;
    83         }
     83        }
     84        // = in page/post preview mode
     85        if(is_admin_bar_showing() && !empty($_GET['preview']))
     86        {
     87            return true;
     88        }
    8489        if(empty($options['includes']))
    8590        {
     
    8994        {
    9095            $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;
    96         }
     96        }       
    9797       
    9898        $includes = array_map('trim', explode(',', $options['includes']));
Note: See TracChangeset for help on using the changeset viewer.