[wp-trac] [WordPress Trac] #23458: Implement filters on post_status, check get_post_status() instead of the object's post_status in get_post_permalink()
WordPress Trac
noreply at wordpress.org
Sat Oct 17 00:43:56 UTC 2015
#23458: Implement filters on post_status, check get_post_status() instead of the
object's post_status in get_post_permalink()
------------------------------------------------+---------------------
Reporter: misterbisson | Owner: jorbin
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Posts, Post Types | Version: 3.5
Severity: normal | Resolution: fixed
Keywords: has-patch 2nd-opinion dev-feedback | Focuses:
------------------------------------------------+---------------------
Changes (by jorbin):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35233"]:
{{{
#!CommitTicketReference repository="" revision="35233"
Improve `get_post_permalink` compatibility with non standard post status
This adds a new filter named `get_post_status` to the function named
`get_post_status` which can be used to make additional post types behave
like unpublished post status in `get_post_permalink`.
Props misterbisson, antpb, iamfriendly
Fixes #23458
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23458#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list