From d8c20f3a5b2ff89dfd86549aab97d6c74a4e3011 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 20 Aug 2017 20:02:10 +0000 Subject: [PATCH] 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 --- src/wp-includes/post-formats.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post-formats.php b/src/wp-includes/post-formats.php index 7800ba0bd6..47db10b176 100644 --- a/src/wp-includes/post-formats.php +++ b/src/wp-includes/post-formats.php @@ -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() );