Ticket #21876: 21876.4.diff
| File 21876.4.diff, 842 bytes (added by , 12 years ago) |
|---|
-
src/wp-includes/theme.php
1204 1204 * @since 3.0.0 1205 1205 * 1206 1206 * @param string|array $header The header string id (key of array) to remove, or an array thereof. 1207 * @return True on success, false on failure.1207 * @return bool True on success, false on failure. 1208 1208 */ 1209 1209 function unregister_default_headers( $header ) { 1210 1210 global $_wp_default_headers; 1211 1211 if ( is_array( $header ) ) { 1212 array_map( 'unregister_default_headers', $header ); 1212 $results = array_map( 'unregister_default_headers', $header ); 1213 return ! in_array( false, $results, true ); 1213 1214 } elseif ( isset( $_wp_default_headers[ $header ] ) ) { 1214 1215 unset( $_wp_default_headers[ $header ] ); 1215 1216 return true;