WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37782, comment 6


Ignore:
Timestamp:
09/24/2018 07:14:02 PM (3 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37782, comment 6

    initial v1  
    66Sadly I had to create a `get_post_status` method instead of just using `_post_states` as it just echos and I needed to append. Was that the right approach? Or should I have updated it to simply use a param default `$echo = true`.
    77
    8 Also am going to revise I believe to use the posts__not_in array on the original query rather than running a foreach to unset posts.
     8Also am going to revise I believe to use the `posts__not_in` array on the original query rather than running a foreach to unset posts.
    99
    1010But thoughts on current direction appreciated.