Docs: Improve the return description for `get_post_format_slugs()` to note that the array contains slugs as both keys and values.
Props danielbachhuber. Fixes #38611. git-svn-id: https://develop.svn.wordpress.org/trunk@41284 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1eb7fadef4
commit
d8c20f3a5b
|
@ -102,11 +102,11 @@ function get_post_format_strings() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves an array of post format slugs.
|
* Retrieves the array of post format slugs.
|
||||||
*
|
*
|
||||||
* @since 3.1.0
|
* @since 3.1.0
|
||||||
*
|
*
|
||||||
* @return array The array of post format slugs.
|
* @return array The array of post format slugs as both keys and values.
|
||||||
*/
|
*/
|
||||||
function get_post_format_slugs() {
|
function get_post_format_slugs() {
|
||||||
$slugs = array_keys( get_post_format_strings() );
|
$slugs = array_keys( get_post_format_strings() );
|
||||||
|
|
Loading…
Reference in New Issue