WordPress.org

Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #20004


Ignore:
Timestamp:
02/09/2012 10:58:01 PM (6 years ago)
Author:
andy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20004 – Description

    initial v5  
    1616
    1717{{{
    18 $found = null;
    1918$value = wp_cache_get( $key, $group, false, $found );
    2019if ( ! $found ) {
     
    2423}}}
    2524
    26 (Assigning ```$found = null;``` prevents "Notice: Undefined variable".)
    27 
    2825However, because object cache drop-ins may lag behind core in adding support for the ```$found``` parameter, the following pattern may be preferred for backwards compatibility:
    2926
    3027{{{
    31 $found = null;
    3228$value = wp_cache_get( $key, $group, false, $found );
    3329if ( ! $value && ! $found ) {