@@ 697-709 (lines=13) @@ | ||
694 | * |
|
695 | * @return string|false False if not found. Permalink structure string. |
|
696 | */ |
|
697 | public function get_author_permastruct() { |
|
698 | if ( isset($this->author_structure) ) |
|
699 | return $this->author_structure; |
|
700 | ||
701 | if ( empty($this->permalink_structure) ) { |
|
702 | $this->author_structure = ''; |
|
703 | return false; |
|
704 | } |
|
705 | ||
706 | $this->author_structure = $this->front . $this->author_base . '/%author%'; |
|
707 | ||
708 | return $this->author_structure; |
|
709 | } |
|
710 | ||
711 | /** |
|
712 | * Retrieves the search permalink structure. |
|
@@ 723-735 (lines=13) @@ | ||
720 | * |
|
721 | * @return string|false False if not found. Permalink structure string. |
|
722 | */ |
|
723 | public function get_search_permastruct() { |
|
724 | if ( isset($this->search_structure) ) |
|
725 | return $this->search_structure; |
|
726 | ||
727 | if ( empty($this->permalink_structure) ) { |
|
728 | $this->search_structure = ''; |
|
729 | return false; |
|
730 | } |
|
731 | ||
732 | $this->search_structure = $this->root . $this->search_base . '/%search%'; |
|
733 | ||
734 | return $this->search_structure; |
|
735 | } |
|
736 | ||
737 | /** |
|
738 | * Retrieves the page permalink structure. |
|
@@ 775-787 (lines=13) @@ | ||
772 | * |
|
773 | * @return string|false False if not found. Permalink structure string. |
|
774 | */ |
|
775 | public function get_feed_permastruct() { |
|
776 | if ( isset($this->feed_structure) ) |
|
777 | return $this->feed_structure; |
|
778 | ||
779 | if ( empty($this->permalink_structure) ) { |
|
780 | $this->feed_structure = ''; |
|
781 | return false; |
|
782 | } |
|
783 | ||
784 | $this->feed_structure = $this->root . $this->feed_base . '/%feed%'; |
|
785 | ||
786 | return $this->feed_structure; |
|
787 | } |
|
788 | ||
789 | /** |
|
790 | * Retrieves the comment feed permalink structure. |
|
@@ 801-813 (lines=13) @@ | ||
798 | * |
|
799 | * @return string|false False if not found. Permalink structure string. |
|
800 | */ |
|
801 | public function get_comment_feed_permastruct() { |
|
802 | if ( isset($this->comment_feed_structure) ) |
|
803 | return $this->comment_feed_structure; |
|
804 | ||
805 | if (empty($this->permalink_structure)) { |
|
806 | $this->comment_feed_structure = ''; |
|
807 | return false; |
|
808 | } |
|
809 | ||
810 | $this->comment_feed_structure = $this->root . $this->comments_base . '/' . $this->feed_base . '/%feed%'; |
|
811 | ||
812 | return $this->comment_feed_structure; |
|
813 | } |
|
814 | ||
815 | /** |
|
816 | * Adds or updates existing rewrite tags (e.g. %postname%). |