From d6749c766926039f2603a422c856e26dc0fd5874 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 21 Sep 2019 13:47:12 +0000 Subject: [PATCH] Docs: Correct type for the `$data` parameter of `WP_Theme::cache_add()`. Props itowhid06. Fixes #48096. git-svn-id: https://develop.svn.wordpress.org/trunk@46226 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php index 77cd807cee..8a1d88e041 100644 --- a/src/wp-includes/class-wp-theme.php +++ b/src/wp-includes/class-wp-theme.php @@ -678,7 +678,7 @@ final class WP_Theme implements ArrayAccess { * @since 3.4.0 * * @param string $key Type of data to store (theme, screenshot, headers, post_templates) - * @param string $data Data to store + * @param array|string $data Data to store * @return bool Return value from wp_cache_add() */ private function cache_add( $key, $data ) {