PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/class-lp-breadcrumb.php +12 -7 4.1.7.24.4.8 View file →
@@ -88,9 +88,8 @@
88 88 }
89 89 }
90 90
91 91 $this->search_trail();
92 - $this->paged_trail();
93 92
94 93 return $this->get_breadcrumb();
95 94 }
96 95
@@ -136,9 +135,9 @@
136 135
137 136 /**
138 137 * Single post trail
139 138 *
140 - * @param int $post_id
139 + * @param int $post_id
141 140 * @param string $permalink
142 141 */
143 142 private function add_crumbs_single( $post_id = 0, $permalink = '' ) {
144 143 if ( ! $post_id ) {
@@ -173,9 +172,9 @@
173 172 $this->add_crumb( $cat->name, get_term_link( $cat ) );
174 173 }
175 174 }
176 175
177 - $this->add_crumb( get_the_title( $post ), $permalink );
176 + //$this->add_crumb( get_the_title( $post ), $permalink );
178 177 }
179 178
180 179 /**
181 180 * Page trail
@@ -324,11 +323,11 @@
324 323 /**
325 324 * Get default queried object by WP.
326 325 * Fixed issue when viewing course category the text in breadcrumb is blank.
327 326 *
327 + * @return object
328 328 * @since 3.0.0
329 329 *
330 - * @return object
331 330 */
332 331 private function get_queried_object() {
333 332 static $default_queried_object;
334 333
@@ -386,9 +385,8 @@
386 385 /**
387 386 * Endpoints
388 387 */
389 388 private function endpoint_trail() {
390 -
391 389 }
392 390
393 391 /**
394 392 * Add a breadcrumb for search results
@@ -395,8 +393,15 @@
395 393 */
396 394 private function search_trail() {
397 395 if ( is_search() ) {
398 396 $this->add_crumb( sprintf( __( 'Search results for “%s”', 'learnpress' ), get_search_query() ), esc_url_raw( remove_query_arg( 'paged' ) ) );
397 + } elseif ( ! empty( $_GET['c_search'] ) ) {
398 + $this->add_crumb(
399 + sprintf(
400 + __( 'Search results for “%s”', 'learnpress' ),
401 + esc_html( $_GET['c_search'] )
402 + )
403 + );
399 404 }
400 405 }
401 406
402 407 /**
@@ -401,10 +406,10 @@
401 406
402 407 /**
403 408 * Add a breadcrumb for pagination
404 409 */
405 - private function paged_trail() {
410 + /*private function paged_trail() {
406 411 if ( get_query_var( 'paged' ) ) {
407 412 $this->add_crumb( sprintf( __( 'Page %d', 'learnpress' ), get_query_var( 'paged' ) ) );
408 413 }
409 - }
414 + }*/
410 415 }