Make WordPress Core

Ticket #15943: 2ndcustomsave-vs-backtodefault.diff

File 2ndcustomsave-vs-backtodefault.diff, 15.3 KB (added by sterlo, 15 years ago)

These are the differences between objects after you set it back to default from the second custom permalink object.

  • (a) 2ndcustomsave vs. (b) backtodefault

    a b  
    11WP_Rewrite Object
    22(
    3     [permalink_structure] => /%category%/%postname%/
    4     [use_trailing_slashes] => 1
     3    [permalink_structure] =>
     4    [use_trailing_slashes] =>
    55    [author_base] => author
    66    [search_base] => search
    77    [comments_base] => comments
    88    [pagination_base] => page
    99    [feed_base] => feed
    1010    [comments_feed_structure] =>
    11     [front] => /
     11    [front] =>
    1212    [root] =>
    1313    [index] => index.php
    1414    [matches] => matches
    15     [rules] => Array
    16         (
    17             [category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    18             [category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    19             [category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
    20             [category/(.+?)/?$] => index.php?category_name=$matches[1]
    21             [tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    22             [tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    23             [tag/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
    24             [tag/([^/]+)/?$] => index.php?tag=$matches[1]
    25             [type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
    26             [type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
    27             [type/([^/]+)/page/?([0-9]{1,})/?$] => index.php?post_format=$matches[1]&paged=$matches[2]
    28             [type/([^/]+)/?$] => index.php?post_format=$matches[1]
    29             [staff/.+?/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    30             [staff/.+?/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    31             [staff/.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    32             [staff/.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    33             [staff/.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    34             [staff/(.+?)/trackback/?$] => index.php?staff=$matches[1]&tb=1
    35             [staff/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?staff=$matches[1]&feed=$matches[2]
    36             [staff/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?staff=$matches[1]&feed=$matches[2]
    37             [staff/(.+?)/page/?([0-9]{1,})/?$] => index.php?staff=$matches[1]&paged=$matches[2]
    38             [staff/(.+?)/comment-page-([0-9]{1,})/?$] => index.php?staff=$matches[1]&cpage=$matches[2]
    39             [staff/(.+?)(/[0-9]+)?/?$] => index.php?staff=$matches[1]&page=$matches[2]
    40             [departments/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?departments=$matches[1]&feed=$matches[2]
    41             [departments/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?departments=$matches[1]&feed=$matches[2]
    42             [departments/([^/]+)/page/?([0-9]{1,})/?$] => index.php?departments=$matches[1]&paged=$matches[2]
    43             [departments/([^/]+)/?$] => index.php?departments=$matches[1]
    44             [robots\.txt$] => index.php?robots=1
    45             [.*wp-atom.php$] => index.php?feed=atom
    46             [.*wp-rdf.php$] => index.php?feed=rdf
    47             [.*wp-rss.php$] => index.php?feed=rss
    48             [.*wp-rss2.php$] => index.php?feed=rss2
    49             [.*wp-feed.php$] => index.php?feed=feed
    50             [.*wp-commentsrss2.php$] => index.php?feed=rss2&withcomments=1
    51             [sample-page/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    52             [sample-page/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    53             [sample-page/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    54             [sample-page/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    55             [sample-page/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    56             [(sample-page)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
    57             [(sample-page)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
    58             [(sample-page)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
    59             [(sample-page)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
    60             [(sample-page)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
    61             [(sample-page)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
    62             [feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
    63             [(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
    64             [page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
    65             [comments/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
    66             [comments/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
    67             [comments/page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
    68             [search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
    69             [search/(.+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
    70             [search/(.+)/page/?([0-9]{1,})/?$] => index.php?s=$matches[1]&paged=$matches[2]
    71             [search/(.+)/?$] => index.php?s=$matches[1]
    72             [author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
    73             [author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
    74             [author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
    75             [author/([^/]+)/?$] => index.php?author_name=$matches[1]
    76             [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
    77             [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
    78             [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]
    79             [([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]
    80             [([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
    81             [([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
    82             [([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]
    83             [([0-9]{4})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]
    84             [([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
    85             [([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
    86             [([0-9]{4})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&paged=$matches[2]
    87             [([0-9]{4})/?$] => index.php?year=$matches[1]
    88             [.+?/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    89             [.+?/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    90             [.+?/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    91             [.+?/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    92             [.+?/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    93             [(.+?)/([^/]+)/trackback/?$] => index.php?category_name=$matches[1]&name=$matches[2]&tb=1
    94             [(.+?)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
    95             [(.+?)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
    96             [(.+?)/([^/]+)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&name=$matches[2]&paged=$matches[3]
    97             [(.+?)/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?category_name=$matches[1]&name=$matches[2]&cpage=$matches[3]
    98             [(.+?)/([^/]+)(/[0-9]+)?/?$] => index.php?category_name=$matches[1]&name=$matches[2]&page=$matches[3]
    99             [.+?/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
    100             [.+?/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    101             [.+?/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    102             [.+?/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    103             [.+?/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    104             [(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    105             [(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    106             [(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
    107             [(.+?)/comment-page-([0-9]{1,})/?$] => index.php?category_name=$matches[1]&cpage=$matches[2]
    108             [(.+?)/?$] => index.php?category_name=$matches[1]
    109         )
    110 
     15    [rules] =>
    11116    [extra_rules] => Array
    11217        (
    11318        )
    11419
    11520    [extra_rules_top] => Array
    11621        (
    117             [category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    118             [category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
    119             [category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
    120             [category/(.+?)/?$] => index.php?category_name=$matches[1]
    121             [tag/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    122             [tag/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
    123             [tag/([^/]+)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
    124             [tag/([^/]+)/?$] => index.php?tag=$matches[1]
    125             [type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
    126             [type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
    127             [type/([^/]+)/page/?([0-9]{1,})/?$] => index.php?post_format=$matches[1]&paged=$matches[2]
    128             [type/([^/]+)/?$] => index.php?post_format=$matches[1]
    129             [staff/.+?/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
    130             [staff/.+?/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
    131             [staff/.+?/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    132             [staff/.+?/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
    133             [staff/.+?/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
    134             [staff/(.+?)/trackback/?$] => index.php?staff=$matches[1]&tb=1
    135             [staff/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?staff=$matches[1]&feed=$matches[2]
    136             [staff/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?staff=$matches[1]&feed=$matches[2]
    137             [staff/(.+?)/page/?([0-9]{1,})/?$] => index.php?staff=$matches[1]&paged=$matches[2]
    138             [staff/(.+?)/comment-page-([0-9]{1,})/?$] => index.php?staff=$matches[1]&cpage=$matches[2]
    139             [staff/(.+?)(/[0-9]+)?/?$] => index.php?staff=$matches[1]&page=$matches[2]
    140             [departments/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?departments=$matches[1]&feed=$matches[2]
    141             [departments/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?departments=$matches[1]&feed=$matches[2]
    142             [departments/([^/]+)/page/?([0-9]{1,})/?$] => index.php?departments=$matches[1]&paged=$matches[2]
    143             [departments/([^/]+)/?$] => index.php?departments=$matches[1]
    14422        )
    14523
    14624    [non_wp_rules] => Array
    14725        (
    14826        )
    14927
    15028    [extra_permastructs] => Array
    15129        (
    15230            [category] => Array
    15331                (
    15432                    [0] => category/%category%
    15533                    [1] => 0
    15634                )
    15735
    15836            [post_tag] => Array
    15937                (
    16038                    [0] => tag/%post_tag%
    16139                    [1] => 0
    16240                )
    16341
     
    16947
    17048            [staff_listing] => Array
    17149                (
    17250                    [0] => /staff/%staff_listing%
    17351                    [1] => 1
    17452                )
    17553
    17654            [departments] => Array
    17755                (
    17856                    [0] => departments/%departments%
    17957                    [1] => 0
    18058                )
    18159
    18260        )
    18361
    18462    [endpoints] => Array
    18563        (
    18664        )
    18765
    18866    [use_verbose_rules] =>
    189     [use_verbose_page_rules] => 1
     67    [use_verbose_page_rules] =>
    19068    [rewritecode] => Array
    19169        (
    19270            [0] => %year%
    19371            [1] => %monthnum%
    19472            [2] => %day%
    19573            [3] => %hour%
    19674            [4] => %minute%
    19775            [5] => %second%
    19876            [6] => %postname%
    19977            [7] => %post_id%
    20078            [8] => %author%
    20179            [9] => %pagename%
    20280            [10] => %search%
    20381            [11] => %category%
    20482            [12] => %post_tag%
    20583            [13] => %post_format%
    20684            [14] => %staff_listing%
    20785            [15] => %departments%
    20886        )
    20987
    21088    [rewritereplace] => Array
    21189        (
    21290            [0] => ([0-9]{4})
    21391            [1] => ([0-9]{1,2})
    21492            [2] => ([0-9]{1,2})
    21593            [3] => ([0-9]{1,2})
    21694            [4] => ([0-9]{1,2})
    21795            [5] => ([0-9]{1,2})
    21896            [6] => ([^/]+)
    21997            [7] => ([0-9]+)
    22098            [8] => ([^/]+)
    221             [9] => (sample-page)
     99            [9] => ([^/]+?)
    222100            [10] => (.+)
    223101            [11] => (.+?)
    224102            [12] => ([^/]+)
    225103            [13] => ([^/]+)
    226104            [14] => (.+?)
    227105            [15] => ([^/]+)
    228106        )
    229107
    230108    [queryreplace] => Array
    231109        (
    232110            [0] => year=
    233111            [1] => monthnum=
    234112            [2] => day=
    235113            [3] => hour=
    236114            [4] => minute=
    237115            [5] => second=
    238116            [6] => name=
    239117            [7] => p=
    240118            [8] => author_name=
    241119            [9] => pagename=
    242120            [10] => s=
    243121            [11] => category_name=
    244122            [12] => tag=
    245123            [13] => post_format=
    246124            [14] => staff=
    247125            [15] => departments=
    248126        )
    249127
    250128    [feeds] => Array
    251129        (
    252130            [0] => feed
    253131            [1] => rdf
    254132            [2] => rss
    255133            [3] => rss2
    256134            [4] => atom
    257135        )
    258136
    259     [date_structure] => /%year%/%monthnum%/%day%
    260     [search_structure] => search/%search%
    261     [author_structure] => /author/%author%
    262     [page_structure] => %pagename%
    263137)