WordPress.org

Plugin Directory

Changeset 791233


Ignore:
Timestamp:
10/21/13 14:23:17 (6 months ago)
Author:
donncha
Message:

Added debug log when obsolete mfunc tags used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache-phase2.php

    r791210 r791233  
    519519     */ 
    520520    if ( $wp_cache_mfunc_enabled == 1 ) { 
    521         if ( preg_match( '/<!--mclude|<!--mfunc|<!--dynamic-cached-content-->/', $buffer ) ) //Dynamic content 
     521        if ( preg_match( '/<!--mclude|<!--mfunc|<!--dynamic-cached-content-->/', $buffer ) ) { //Dynamic content 
     522            if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( "mfunc/mclude/dynamic-cached-content tags have been retired. Please update your theme. See docs for updates." ); 
    522523            wp_cache_add_to_buffer( $buffer, "Warning! Obsolete mfunc/mclude/dynamic-cached-content tags found. Please update your theme. See http://ocaoimh.ie/y/5b for more information." ); 
     524        } 
    523525 
    524526        global $wp_super_cache_late_init; 
Note: See TracChangeset for help on using the changeset viewer.