Plugin Directory

Changeset 633589


Ignore:
Timestamp:
12/03/2012 06:00:18 PM (13 years ago)
Author:
stresslimit
Message:

wrapping class instantiation is is_admin() to save on memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • editorial-calendar/trunk/edcal.php

    r626271 r633589  
    2626
    2727
    28 
    29 global $edcal;
    30 if( empty($edcal) )
    31     $edcal = new EdCal();
    32 
     28if ( is_admin() ) {
     29    global $edcal;
     30    if ( empty($edcal) )
     31        $edcal = new EdCal();
     32}
    3333
    3434
Note: See TracChangeset for help on using the changeset viewer.