WordPress.org

Plugin Directory

Changeset 736205


Ignore:
Timestamp:
07/04/13 15:26:30 (10 months ago)
Author:
donncha
Message:

Detect old mfunc tags and add a warning in the source of the page.

File:
1 edited

Legend:

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

    r736158 r736205  
    517517     */ 
    518518    if ( $wp_cache_mfunc_enabled == 1 ) { 
     519        if ( preg_match( '/<!--mclude|<!--mfunc|<!--dynamic-cached-content-->/', $buffer ) ) //Dynamic content 
     520            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." ); 
     521 
    519522        global $wp_super_cache_late_init; 
    520523        if ( false == isset( $wp_super_cache_late_init ) || ( isset( $wp_super_cache_late_init ) && $wp_super_cache_late_init == 0 ) ) 
Note: See TracChangeset for help on using the changeset viewer.