@@ -858,26 +858,26 @@ protected function _set_namespaces( $post_id, $namespaces ) {
858
858
protected function _set_since_meta ( $ post_id , $ since_versions , $ deprecated_version ) {
859
859
$ anything_updated = array ();
860
860
$ introduced_version = array_shift ( $ since_versions );
861
- $ introduced = isset ( $ introduced_version ['content ' ] ) && $ introduced_version ['content ' ];
862
861
862
+ $ introduced = isset ( $ introduced_version ['content ' ] ) && $ introduced_version ['content ' ];
863
863
if ( $ introduced && maybe_version ( $ introduced_version ['content ' ] ) ) {
864
- $ anything_updated [] = update_post_meta ( $ post_id , 'wp_parser_introduced ' , $ introduced_version ['content ' ] );
864
+ $ anything_updated [] = update_post_meta ( $ post_id , '_wp-parser_introduced ' , $ introduced_version ['content ' ] );
865
865
} else {
866
- delete_post_meta ( $ post_id , 'wp_parser_introduced ' );
866
+ delete_post_meta ( $ post_id , '_wp-parser_introduced ' );
867
867
}
868
868
869
869
$ deprecated = isset ( $ deprecated_version ['content ' ] ) && $ deprecated_version ['content ' ];
870
870
if ( $ deprecated && maybe_version ( $ deprecated_version ['content ' ] ) ) {
871
- $ anything_updated [] = update_post_meta ( $ post_id , 'wp_parser_deprecated ' , $ deprecated_version ['content ' ] );
871
+ $ anything_updated [] = update_post_meta ( $ post_id , '_wp-parser_deprecated ' , $ deprecated_version ['content ' ] );
872
872
} else {
873
- delete_post_meta ( $ post_id , 'wp_parser_deprecated ' );
873
+ delete_post_meta ( $ post_id , '_wp-parser_deprecated ' );
874
874
}
875
875
876
- $ old_meta = get_post_meta ( $ post_id , 'wp_parser_modified ' );
876
+ $ old_meta = get_post_meta ( $ post_id , '_wp-parser_modified ' );
877
877
$ new_meta = array ();
878
878
879
879
// Delete modified meta and check if anything was updated after adding new meta.
880
- delete_post_meta ( $ post_id , 'wp_parser_modified ' );
880
+ delete_post_meta ( $ post_id , '_wp-parser_modified ' );
881
881
882
882
if ( ! empty ( $ since_versions ) ) {
883
883
foreach ( $ since_versions as $ since ) {
@@ -887,7 +887,7 @@ protected function _set_since_meta( $post_id, $since_versions, $deprecated_versi
887
887
}
888
888
889
889
$ new_meta [] = $ since ['content ' ];
890
- add_post_meta ( $ post_id , 'wp_parser_modified ' , $ since ['content ' ] );
890
+ add_post_meta ( $ post_id , '_wp-parser_modified ' , $ since ['content ' ] );
891
891
}
892
892
}
893
893
0 commit comments