Changeset 14641
- Timestamp:
- 05/14/2010 04:55:26 PM (15 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r14639 r14641 4164 4164 4165 4165 /** 4166 * Returns an empty array 4167 * 4168 * Useful for returning an empty array to filters easily 4169 * 4170 * @since 3.0.0 4171 * @see __return_zero() 4172 * @return array Empty array 4173 */ 4174 function __return_empty_array() { 4175 return array(); 4176 } 4177 4178 /** 4166 4179 * Send a HTTP header to disable content type sniffing in browsers which support it. 4167 4180 * -
trunk/wp-includes/theme.php
r14610 r14641 1112 1112 1113 1113 // Prevent theme mods to current theme being used on theme being previewed 1114 add_filter( 'pre_option_mods_' . get_current_theme(), create_function( '', "return array();" ));1114 add_filter( 'pre_option_mods_' . get_current_theme(), '__return_empty_array' ); 1115 1115 1116 1116 ob_start( 'preview_theme_ob_filter' );
Note: See TracChangeset
for help on using the changeset viewer.