Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: mod_rewite w wordpress
Forum PHP.pl > Forum > Gotowe rozwiązania > Systemy portalowe i CMS'y
fiasko
Tak wygląda u mnie obiekt klasy, który odpowiada za mod_rewite w wordpress. Dane reguł przechowywane są w bazie, jedank gdy kasuję te reguły z znowu są dopisywane. Domniemywam więc, ze reguły tworzy jakaś klasa. Chcę zastąpić niektóre reguły na inne, ale coś je dopisuje i nie wiem co .


Kod
WP_Rewrite Object
(
    [permalink_structure] => /%year%/%monthnum%/%day%/%postname%/%post_id%.html
    [use_trailing_slashes] =>
    [author_base] => author
    [search_base] => search
    [comments_base] => comments
    [pagination_base] => page
    [feed_base] => feed
    [comments_feed_structure] =>
    [front] => /
    [root] =>
    [index] => index.php
    [matches] =>
    [rules] => Array
        (
            [category/(.+?).html/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
            [category/(.+?).html/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
            [category/(.+?).html/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
            [category/(.+?).html/?$] => index.php?category_name=$matches[1]
            [tag/([^/]+).html/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
            [tag/([^/]+).html/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
            [tag/([^/]+).html/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
            [tag/([^/]+).html/?$] => index.php?tag=$matches[1]
            [type/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
            [type/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?post_format=$matches[1]&feed=$matches[2]
            [type/([^/]+)/page/?([0-9]{1,})/?$] => index.php?post_format=$matches[1]&paged=$matches[2]
            [type/([^/]+)/?$] => index.php?post_format=$matches[1]
            [videos/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
            [videos/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
            [videos/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
            [videos/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
            [videos/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
            [videos/([^/]+)/trackback/?$] => index.php?videos=$matches[1]&tb=1
            [videos/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?videos=$matches[1]&feed=$matches[2]
            [videos/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?videos=$matches[1]&feed=$matches[2]
            [videos/([^/]+)/page/?([0-9]{1,})/?$] => index.php?videos=$matches[1]&paged=$matches[2]
            [videos/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?videos=$matches[1]&cpage=$matches[2]
            [videos/([^/]+)(/[0-9]+)?/?$] => index.php?videos=$matches[1]&page=$matches[2]
            [videos/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
            [videos/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
            [videos/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
            [videos/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
            [videos/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
            [videoscategory/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?videoscategory=$matches[1]&feed=$matches[2]
            [videoscategory/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?videoscategory=$matches[1]&feed=$matches[2]
            [videoscategory/([^/]+)/page/?([0-9]{1,})/?$] => index.php?videoscategory=$matches[1]&paged=$matches[2]
            [videoscategory/([^/]+)/?$] => index.php?videoscatesgory=$matches[1]
            [videostags/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?videostags=$matches[1]&feed=$matches[2]
            [videostags/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?videostags=$matches[1]&feed=$matches[2]
            [videostags/([^/]+)/page/?([0-9]{1,})/?$] => index.php?videostags=$matches[1]&paged=$matches[2]
            [videostags/([^/]+)/?$] => index.php?videostags=$matches[1]
            itd.
        )
   )

    [extra_rules] => Array
        (
        )

    [extra_rules_top] => Array
        (
        )

    [non_wp_rules] => Array
        (
        )

    [extra_permastructs] => Array
        (
            [category] => Array
                (
                    [0] => /category/%category%.html
                    [1] => 0
                )

            [post_tag] => Array
                (
                    [0] => /tag/%post_tag%.html
                    [1] => 0
                )

            [post_format] => Array
                (
                    [0] => /type/%post_format%
                    [1] => 0
                )

            [videos] => Array
                (
                    [0] => /videos/%videos%
                    [1] => 1
                )

            [videoscategory] => Array
                (
                    [0] => /videoscategory/%videoscategory%
                    [1] => 0
                )

            [videostags] => Array
                (
                    [0] => /videostags/%videostags%.html
                    [1] => 0
                )

            [page] => Array
                (
                    [0] => /page/%pagename%.html
                    [1] => 0
                )

            [author] => Array
                (
                    [0] => /author/%author%.html
                    [1] => 0
                )

        )

    [endpoints] => Array
        (
        )

    [use_verbose_rules] =>
    [use_verbose_page_rules] =>
    [rewritecode] => Array
        (
            [0] => %year%
            [1] => %monthnum%
            [2] => %day%
            [3] => %hour%
            [4] => %minute%
            [5] => %second%
            [6] => %postname%
            [7] => %post_id%
            [8] => %author%
            [9] => %pagename%
            [10] => %search%
            [11] => %category%
            [12] => %post_tag%
            [13] => %post_format%
            [14] => %videos%
            [15] => %videoscategory%
            [16] => %videostags%
        )

    [rewritereplace] => Array
        (
            [0] => ([0-9]{4})
            [1] => ([0-9]{1,2})
            [2] => ([0-9]{1,2})
            [3] => ([0-9]{1,2})
            [4] => ([0-9]{1,2})
            [5] => ([0-9]{1,2})
            [6] => ([^/]+)
            [7] => ([0-9]+)
            [8] => ([^/]+)
            [9] => ([^/]+?)
            [10] => (.+)
            [11] => (.+?)
            [12] => ([^/]+)
            [13] => ([^/]+)
            [14] => ([^/]+)
            [15] => ([^/]+)
            [16] => ([^/]+)
        )

    [queryreplace] => Array
        (
            [0] => year=
            [1] => monthnum=
            [2] => day=
            [3] => hour=
            [4] => minute=
            [5] => second=
            [6] => name=
            [7] => p=
            [8] => author_name=
            [9] => pagename=
            [10] => s=
            [11] => category_name=
            [12] => tag=
            [13] => post_format=
            [14] => videos=
            [15] => videoscategory=
            [16] => videostags=
        )

    [feeds] => Array
        (
            [0] => feed
            [1] => rdf
            [2] => rss
            [3] => rss2
            [4] => atom
        )

    [page_structure] => /page/%pagename%.html
    [author_structure] => /author/%author%.html
    [feed_structure] => feed/%feed%
)



erix
A rozejrzałeś się czasem po pluginach?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.