Docs: Clarify that get_post_types() accepts 'not' as its $operator parameter.

Props barryceelen.
Fixes #35225.
Built from https://develop.svn.wordpress.org/trunk@36091


git-svn-id: http://core.svn.wordpress.org/trunk@36056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-12-26 00:38:25 +00:00
parent b742304f13
commit 7d9d7f2df4
2 changed files with 2 additions and 2 deletions

View File

@ -864,7 +864,7 @@ function get_post_type_object( $post_type ) {
* or 'objects'. Default 'names'. * or 'objects'. Default 'names'.
* @param string $operator Optional. The logical operation to perform. 'or' means only one * @param string $operator Optional. The logical operation to perform. 'or' means only one
* element from the array needs to match; 'and' means all elements * element from the array needs to match; 'and' means all elements
* must match. Accepts 'or' or 'and'. Default 'and'. * must match; 'not' means no elements may match. Default 'and'.
* @return array A list of post type names or objects. * @return array A list of post type names or objects.
*/ */
function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) { function get_post_types( $args = array(), $output = 'names', $operator = 'and' ) {

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36090'; $wp_version = '4.5-alpha-36091';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.