Opened 3 hours ago
Closed 105 minutes ago
#49591 closed enhancement (invalid)
Minor code cleanup
Reported by: | dontdream | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | minor | Version: | |
Component: | Posts, Post Types | Keywords: | |
Focuses: | Cc: |
Description
In the function get_the_content() after the lines:
$_post = get_post( $post ); if ( ! ( $_post instanceof WP_Post ) ) { return ''; }
the additional test:
if ( null === $post ) {
will always return false, and could be removed for clarity.
Attachments (1)
Change History (2)
#1
@
105 minutes ago
- Keywords has-patch removed
- Resolution set to invalid
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.
Please ignore - I didn't notice that get_post() could find a post even if $post is null.