Changeset 1958609
- Timestamp:
- 10/18/2018 01:10:51 PM (7 years ago)
- Location:
- basepress/trunk
- Files:
-
- 3 edited
-
basepress.php (modified) (2 diffs)
-
includes/class-basepress-utils.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
basepress/trunk/basepress.php
r1948559 r1958609 5 5 * Plug URI: http://www.8bitsinarow.com 6 6 * Description: The perfect Knowledge Base plugin for WordPress 7 * Version: 1.8.1 07 * Version: 1.8.11 8 8 * Author: 8Bits in a row 9 9 * Author URI: http://www.8bitsinarow.com … … 73 73 * @var string 74 74 */ 75 public $ver = '1.8.1 0' ;75 public $ver = '1.8.11' ; 76 76 /** 77 77 * Database version -
basepress/trunk/includes/class-basepress-utils.php
r1948559 r1958609 84 84 * @since 1.8.9 85 85 * 86 * @updated 1.8.11 87 * 86 88 * @param $request 87 89 * @return mixed 88 90 */ 89 91 public function redirections( $request ){ 90 global $wp ;92 global $wp, $wp_rewrite;; 91 93 92 94 //If we are in the Admin or Pretty permalinks are not enabled return the request unchanged … … 102 104 $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) ); 103 105 $post_permalink = get_permalink( $post->ID ); 106 if( isset( $request['page'] ) ){ 107 $post_permalink = $post_permalink . $request['page'] . '/'; 108 } 109 if( isset( $request['cpage'] ) ){ 110 $comment_page_base = $wp_rewrite->comments_pagination_base; 111 $post_permalink = $post_permalink . $comment_page_base . '-' . $request['cpage'] . '/'; 112 } 104 113 105 114 //If the current URL don't match with the post permalink redirect with a 301 … … 131 140 $current_url = add_query_arg( $wp->query_string, '', home_url( $wp->request ) ); 132 141 $section_permalink = get_term_link( $section, 'knowledgebase_cat' ); 142 if( isset( $request['paged'] ) ){ 143 $page_base = $wp_rewrite->pagination_base; 144 $section_permalink = $section_permalink . $page_base . '/' . $request['paged'] . '/'; 145 } 146 133 147 134 148 //If the current URL don't match with the section permalink redirect with a 301 -
basepress/trunk/readme.txt
r1948559 r1958609 5 5 Requires at least: 4.5 6 6 Tested up to: 4.9.8 7 Stable tag: 1.8.1 07 Stable tag: 1.8.11 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 139 139 == Changelog == 140 140 141 = 1.8.11 = 142 * Fixed pagination that stopped working after version 1.8.9 143 141 144 = 1.8.10 = 142 145 * Improved articles list in sections. Now it shows the articles from that section and a list of sub-sections if present
Note: See TracChangeset
for help on using the changeset viewer.