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:
parent
c50acdcb4c
commit
d1fd329ea2
|
@ -1,6 +1,14 @@
|
||||||
<?php
|
<?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
|
* 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
|
* file. It also handles parsing the request to get the correct setup for the
|
||||||
|
@ -13,8 +21,6 @@
|
||||||
* rules.
|
* rules.
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
* @package WordPress
|
|
||||||
* @subpackage Rewrite
|
|
||||||
*/
|
*/
|
||||||
class WP_Rewrite {
|
class WP_Rewrite {
|
||||||
/**
|
/**
|
||||||
|
@ -1110,7 +1116,14 @@ class WP_Rewrite {
|
||||||
//add regexes/queries for attachments, attachment trackbacks and so on
|
//add regexes/queries for attachments, attachment trackbacks and so on
|
||||||
if ( ! $page ) {
|
if ( ! $page ) {
|
||||||
//require <permalink>/attachment/stuff form for pages because of confusion with subpages
|
//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 );
|
$rewrite = array_merge( array( $sub2 => $subquery, $sub2tb => $subtbquery, $sub2feed => $subfeedquery, $sub2feed2 => $subfeedquery, $sub2comment => $subcommentquery, $sub2embed => $subembedquery ), $rewrite );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue