Skip to content

Commit

Permalink
code indentation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mhshujon committed Sep 25, 2023
1 parent 3478ad5 commit 224ecad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -2513,11 +2513,11 @@ function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) {
* An empty string if a valid but non-existing post ID is passed.
*/
function get_post_meta( $post_id, $key = '', $single = false ) {
// Make sure meta is get for the post, not for a revision.
$the_post = wp_is_post_revision( $post_id );
if ( $the_post ) {
$post_id = $the_post;
}
// Make sure meta is get for the post, not for a revision.
$the_post = wp_is_post_revision( $post_id );
if( $the_post ) {
$post_id = $the_post;
}

return get_metadata( 'post', $post_id, $key, $single );
}
Expand Down

0 comments on commit 224ecad

Please sign in to comment.