mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user