Changes between Initial Version and Version 5 of Ticket #20004
- Timestamp:
- 02/09/12 22:58:01 (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #20004 – Description
initial v5 16 16 17 17 {{{ 18 $found = null;19 18 $value = wp_cache_get( $key, $group, false, $found ); 20 19 if ( ! $found ) { … … 24 23 }}} 25 24 26 (Assigning ```$found = null;``` prevents "Notice: Undefined variable".)27 28 25 However, 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: 29 26 30 27 {{{ 31 $found = null;32 28 $value = wp_cache_get( $key, $group, false, $found ); 33 29 if ( ! $value && ! $found ) {