Ticket #17850: 17850.diff
File 17850.diff, 710 bytes (added by , 14 years ago) |
---|
-
wp-includes/meta.php
588 588 * @return bool True if the key is protected, false otherwise. 589 589 */ 590 590 function is_protected_meta( $meta_key, $meta_type = null ) { 591 $protected = ( '_' == $meta_key[0] ); 591 $protected = false; 592 $protected_keys = array( '_edit_last', '_edit_lock', '_thumbnail_id' ); 592 593 594 if ( 0 === strpos( $meta_key, '_wp_' ) || 0 === strpos( $meta_key, '_menu_item_' ) || in_array( $meta_key, $protected_keys ) ) 595 $protected = true; 596 593 597 return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type ); 594 598 } 595 599