mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-10 23:54:33 +00:00
Improve some post_status-related documentation.
Props ericlewis. See #30230. git-svn-id: https://develop.svn.wordpress.org/trunk@30155 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1060,7 +1060,7 @@ function get_post_status_object( $post_status ) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a list of all registered post status objects.
|
||||
* Get a list of post statuses.
|
||||
*
|
||||
* @since 3.0.0
|
||||
*
|
||||
@@ -1068,9 +1068,9 @@ function get_post_status_object( $post_status ) {
|
||||
*
|
||||
* @see register_post_status()
|
||||
*
|
||||
* @param array|string $args Optional. Array or string of post status arguments. Default array.
|
||||
* @param string $output Optional. The type of output to return. Accepts post status 'names'
|
||||
* or 'objects'. Default 'names'.
|
||||
* @param array|string $args Optional. Array or string of post status arguments to compare against
|
||||
* properties of the global $wp_post_statuses objects. Default empty array.
|
||||
* @param string $output Optional. The type of output to return, either 'names' or 'objects'. Default 'names'.
|
||||
* @param string $operator Optional. The logical operation to perform. 'or' means only one element
|
||||
* from the array needs to match; 'and' means all elements must match.
|
||||
* Default 'and'.
|
||||
|
||||
Reference in New Issue
Block a user