WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43256, comment 3


Ignore:
Timestamp:
02/08/2018 02:38:14 PM (4 years ago)
Author:
charlestonsw
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43256, comment 3

    initial v1  
    22
    33Add to this:
    4 
    5 {{{
    6    $post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d", $postid ) );
    7  
    8     if ( ! $post ) {
    9         return $post;
    10     }
    11  
    12     $post = get_post( $post );
    13 }}}
    144
    155