From 4f331ec1df079b2614eecba68d4fa0ee33bd1274 Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Sun, 23 Nov 2014 17:56:14 +0000 Subject: [PATCH] Improve return description for `get_file_data()` documentation. Also convert an incorrect use of `@see` to `@link`. Props 5um17 for the initial patch. Fixes #30466. git-svn-id: https://develop.svn.wordpress.org/trunk@30532 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 7b41842027..36e3a0960e 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4163,13 +4163,15 @@ function wp_scheduled_delete() { * If the file data is not within that first 8kiB, then the author should correct * their plugin file and move the data headers to the top. * - * @see http://codex.wordpress.org/File_Header + * @link http://codex.wordpress.org/File_Header * * @since 2.9.0 + * * @param string $file Path to the file. * @param array $default_headers List of headers, in the format array('HeaderKey' => 'Header Name'). * @param string $context Optional. If specified adds filter hook "extra_{$context}_headers". * Default empty. + * @return array Array of file headers in `HeaderKey => Header Value` format. */ function get_file_data( $file, $default_headers, $context = '' ) { // We don't need to write to the file, so just open for reading.