Changeset 46596 for trunk/src/wp-includes/class-wp-rewrite.php
- Timestamp:
- 10/26/2019 09:07:10 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-rewrite.php
r46141 r46596 855 855 * @param bool $endpoints Optional. Whether endpoints should be applied to the generated rewrite rules. 856 856 * Default true. 857 * @return array Rewrite rule list.857 * @return string[] Array of rewrite rules keyed by their regex pattern. 858 858 */ 859 859 public function generate_rewrite_rules( $permalink_structure, $ep_mask = EP_NONE, $paged = true, $feed = true, $forcomments = false, $walk_dirs = true, $endpoints = true ) { … … 1288 1288 * @since 1.5.0 1289 1289 * 1290 * @param array $post_rewrite The rewrite rules for posts.1290 * @param string[] $post_rewrite Array of rewrite rules for posts, keyed by their regex pattern. 1291 1291 */ 1292 1292 $post_rewrite = apply_filters( 'post_rewrite_rules', $post_rewrite ); … … 1302 1302 * @since 1.5.0 1303 1303 * 1304 * @param array $date_rewrite The rewrite rules for date archives.1304 * @param string[] $date_rewrite Array of rewrite rules for date archives, keyed by their regex pattern. 1305 1305 */ 1306 1306 $date_rewrite = apply_filters( 'date_rewrite_rules', $date_rewrite ); … … 1317 1317 * @since 1.5.0 1318 1318 * 1319 * @param array $root_rewrite The root-level rewrite rules.1319 * @param string[] $root_rewrite Array of root-level rewrite rules, keyed by their regex pattern. 1320 1320 */ 1321 1321 $root_rewrite = apply_filters( 'root_rewrite_rules', $root_rewrite ); … … 1331 1331 * @since 1.5.0 1332 1332 * 1333 * @param array $comments_rewrite The rewrite rules for the site-wide comments feeds.1333 * @param string[] $comments_rewrite Array of rewrite rules for the site-wide comments feeds, keyed by their regex pattern. 1334 1334 */ 1335 1335 $comments_rewrite = apply_filters( 'comments_rewrite_rules', $comments_rewrite ); … … 1347 1347 * @since 1.5.0 1348 1348 * 1349 * @param array $search_rewrite The rewrite rules for search queries.1349 * @param string[] $search_rewrite Array of rewrite rules for search queries, keyed by their regex pattern. 1350 1350 */ 1351 1351 $search_rewrite = apply_filters( 'search_rewrite_rules', $search_rewrite ); … … 1362 1362 * @since 1.5.0 1363 1363 * 1364 * @param array $author_rewrite The rewrite rules for author archives.1364 * @param string[] $author_rewrite Array of rewrite rules for author archives, keyed by their regex pattern. 1365 1365 */ 1366 1366 $author_rewrite = apply_filters( 'author_rewrite_rules', $author_rewrite ); … … 1374 1374 * @since 1.5.0 1375 1375 * 1376 * @param array $page_rewrite The rewrite rules for the "page" post type.1376 * @param string[] $page_rewrite Array of rewrite rules for the "page" post type, keyed by their regex pattern. 1377 1377 */ 1378 1378 $page_rewrite = apply_filters( 'page_rewrite_rules', $page_rewrite ); … … 1399 1399 * @since 3.1.0 1400 1400 * 1401 * @param array $rules The rewrite rules generated for the current permastruct.1401 * @param string[] $rules Array of rewrite rules generated for the current permastruct, keyed by their regex pattern. 1402 1402 */ 1403 1403 $rules = apply_filters( "{$permastructname}_rewrite_rules", $rules ); … … 1410 1410 * @deprecated 3.1.0 Use 'post_tag_rewrite_rules' instead 1411 1411 * 1412 * @param array $rules The rewrite rules generated for tags.1412 * @param string[] $rules Array of rewrite rules generated for tags, keyed by their regex pattern. 1413 1413 */ 1414 1414 $rules = apply_filters( 'tag_rewrite_rules', $rules ); … … 1439 1439 * @since 1.5.0 1440 1440 * 1441 * @param array $this->rules The compiled array of rewrite rules.1441 * @param string[] $this->rules The compiled array of rewrite rules, keyed by their regex pattern. 1442 1442 */ 1443 1443 $this->rules = apply_filters( 'rewrite_rules_array', $this->rules );
Note: See TracChangeset
for help on using the changeset viewer.