Changeset 28883 for trunk/src/wp-includes/plugin.php
- Timestamp:
- 06/28/2014 04:26:49 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/plugin.php
r28011 r28883 297 297 * @return bool True when finished. 298 298 */ 299 function remove_all_filters( $tag, $priority = false) {299 function remove_all_filters( $tag, $priority = false ) { 300 300 global $wp_filter, $merged_filters; 301 301 302 if( isset($wp_filter[$tag]) ) { 303 if( false !== $priority && isset($wp_filter[$tag][$priority]) ) 304 unset($wp_filter[$tag][$priority]); 305 else 306 unset($wp_filter[$tag]); 307 } 308 309 if( isset($merged_filters[$tag]) ) 310 unset($merged_filters[$tag]); 302 if ( isset( $wp_filter[ $tag ]) ) { 303 if ( false !== $priority && isset( $wp_filter[ $tag ][ $priority ] ) ) { 304 $wp_filter[ $tag ][ $priority ] = array(); 305 } else { 306 $wp_filter[ $tag ] = array(); 307 } 308 } 309 310 if ( isset( $merged_filters[ $tag ] ) ) { 311 unset( $merged_filters[ $tag ] ); 312 } 311 313 312 314 return true;
Note: See TracChangeset
for help on using the changeset viewer.