Docs: Add a file header to wp-includes/class-wp-rewrite.php.

See #34218.

Built from https://develop.svn.wordpress.org/trunk@34938


git-svn-id: http://core.svn.wordpress.org/trunk@34903 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Drew Jaynes 2015-10-08 16:41:26 +00:00
parent c50acdcb4c
commit d1fd329ea2
2 changed files with 18 additions and 5 deletions

View File

@ -1,6 +1,14 @@
<?php
/**
* WordPress Rewrite Component.
* Rewrite API: WP_Rewrite class
*
* @package WordPress
* @subpackage Rewrite
* @since 1.5.0
*/
/**
* Core class used to implement a rewrite component API.
*
* The WordPress Rewrite class writes the rewrite module rules to the .htaccess
* file. It also handles parsing the request to get the correct setup for the
@ -13,8 +21,6 @@
* rules.
*
* @since 1.5.0
* @package WordPress
* @subpackage Rewrite
*/
class WP_Rewrite {
/**
@ -1110,7 +1116,14 @@ class WP_Rewrite {
//add regexes/queries for attachments, attachment trackbacks and so on
if ( ! $page ) {
//require <permalink>/attachment/stuff form for pages because of confusion with subpages
$rewrite = array_merge( $rewrite, array($sub1 => $subquery, $sub1tb => $subtbquery, $sub1feed => $subfeedquery, $sub1feed2 => $subfeedquery, $sub1comment => $subcommentquery, $sub1embed => $subembedquery ) );
$rewrite = array_merge( $rewrite, array(
$sub1 => $subquery,
$sub1tb => $subtbquery,
$sub1feed => $subfeedquery,
$sub1feed2 => $subfeedquery,
$sub1comment => $subcommentquery,
$sub1embed => $subembedquery
) );
}
$rewrite = array_merge( array( $sub2 => $subquery, $sub2tb => $subtbquery, $sub2feed => $subfeedquery, $sub2feed2 => $subfeedquery, $sub2comment => $subcommentquery, $sub2embed => $subembedquery ), $rewrite );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34937';
$wp_version = '4.4-alpha-34938';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.