Docs: Further improve documentation of known return types, plus other docs fixes.

See #48303


git-svn-id: https://develop.svn.wordpress.org/trunk@46661 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2019-11-05 21:25:53 +00:00
parent db4f746b4a
commit 3cdee7a705
15 changed files with 65 additions and 61 deletions

View File

@@ -463,7 +463,7 @@ class WP_Rewrite {
*
* @since 1.5.0
*
* @return array Page rewrite rules.
* @return string[] Page rewrite rules.
*/
public function page_rewrite_rules() {
// The extra .? at the beginning prevents clashes with other regular expressions in the rules array.
@@ -1250,7 +1250,7 @@ class WP_Rewrite {
*
* @since 1.5.0
*
* @return array An associate array of matches and queries.
* @return string[] An associative array of matches and queries.
*/
public function rewrite_rules() {
$rewrite = array();
@@ -1455,7 +1455,7 @@ class WP_Rewrite {
*
* @since 1.5.0
*
* @return array Rewrite rules.
* @return string[] Array of rewrite rules keyed by their regex pattern.
*/
public function wp_rewrite_rules() {
$this->rules = get_option( 'rewrite_rules' );