[wp-trac] [WordPress Trac] #18362: Post timestamp creation should use whitelisted post statuses instead of blacklisted

WordPress Trac noreply at wordpress.org
Mon Aug 1 19:34:36 UTC 2022


#18362: Post timestamp creation should use whitelisted post statuses instead of
blacklisted
-------------------------------------------------+-------------------------
 Reporter:  danielbachhuber                      |       Owner:
                                                 |  danielbachhuber
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Posts, Post Types                    |     Version:  3.0
 Severity:  normal                               |  Resolution:  wontfix
 Keywords:  has-patch needs-testing needs-       |     Focuses:
  refresh                                        |
-------------------------------------------------+-------------------------
Changes (by desrosj):

 * status:  assigned => closed
 * resolution:   => wontfix


Comment:

 It looks like the underlying code has changed since this was opened.

 The [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/post.php?annotate=blame#L4208 code still uses a block list of
 statuses, but now dynamically gathers the list of statuses to look for]
 using `get_post_stati()` to search for statuses with `date_floating` set
 to `true`. I ''think'' the addition of the `date_floating` (see
 [46252]/#39953) flag should solve the original problem so long as the
 custom status supplies a `true` value to override the default one of
 `null`.

 With this in mind, and the fact that no one else has reported or worked on
 this one in 11+ years, I'm going to close this one out as a `wontfix`. If
 anyone disagrees, discussion can always continue on closed tickets, and
 this can be reopened if someone feels strongly enough to invest time in
 exploring further.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/18362#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list