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. Built from https://develop.svn.wordpress.org/trunk@41284 git-svn-id: http://core.svn.wordpress.org/trunk@41124 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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
|
||||
*
|
||||
* @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() {
|
||||
$slugs = array_keys( get_post_format_strings() );
|
||||
|
||||
Reference in New Issue
Block a user