[wp-trac] [WordPress Trac] #34422: Remove 'post_status' => 'publish' argument from WP_Query args of the Recent Posts widget
WordPress Trac
noreply at wordpress.org
Sat Oct 24 00:05:47 UTC 2015
#34422: Remove 'post_status' => 'publish' argument from WP_Query args of the Recent
Posts widget
-------------------------+-----------------------------
Reporter: alexvorn2 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
In the Recent Posts widget we have 'post_status' => 'publish' ''(from the
array of arguments)'',
I think we need to remove this because the default value of the
`post_status` argument for WP_Query is already `publish`.
Reference: https://codex.wordpress.org/Class_Reference/WP_Query
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34422>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list