WordPress.org

Plugin Directory

Changeset 634155


Ignore:
Timestamp:
12/04/12 20:22:26 (17 months ago)
Author:
GregLone
Message:

Small performance improvement.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sf-archiver/trunk/w3p-archiver.php

    r634150 r634155  
    3030 
    3131/* Init */ 
    32 if (is_admin()) { 
     32if ( is_admin() && !defined('DOING_AJAX') ) { 
    3333 
    3434    include_once(W3P_ACPT_PLUGIN_DIR.'/admin/w3p-acpt-admin.inc.php');                              // Admin 
    3535 
    36 } else { 
     36} elseif ( !is_admin() && !defined( 'XMLRPC_REQUEST' ) && !defined( 'DOING_CRON' ) ) { 
    3737 
    3838    add_filter( 'wp_get_nav_menu_items', 'cpt_archive_menu_filter', 10, 3 );                        // Alter the URL for cpt-archive objects 
Note: See TracChangeset for help on using the changeset viewer.