@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
| 2 | +if ( ! defined( 'ABSPATH' ) ) { |
|
| 3 | + exit; |
|
| 4 | +} |
|
| 5 | +// Exit if accessed directly |
|
| 3 | 6 | |
| 4 | 7 | /** |
| 5 | 8 | * Sensei Analysis User Profile List Table Class |
@@ -181,7 +181,9 @@ discard block |
||
| 181 | 181 | * @return void |
| 182 | 182 | */ |
| 183 | 183 | function sensei_recent_comments_widget_filter( $widget_args = array() ) { |
| 184 | - if ( ! isset( $widget_args['post_type'] ) ) $widget_args['post_type'] = array( 'post', 'page' ); |
|
| 184 | + if ( ! isset( $widget_args['post_type'] ) ) { |
|
| 185 | + $widget_args['post_type'] = array( 'post', 'page' ); |
|
| 186 | + } |
|
| 185 | 187 | return $widget_args; |
| 186 | 188 | } // End sensei_recent_comments_widget_filter() |
| 187 | 189 | add_filter( 'widget_comments_args', 'sensei_recent_comments_widget_filter', 10, 1 ); |
@@ -196,8 +198,9 @@ discard block |
||
| 196 | 198 | function sensei_course_archive_filter( $query ) { |
| 197 | 199 | |
| 198 | 200 | |
| 199 | - if ( ! $query->is_main_query() ) |
|
| 200 | - return; |
|
| 201 | + if ( ! $query->is_main_query() ) { |
|
| 202 | + return; |
|
| 203 | + } |
|
| 201 | 204 | |
| 202 | 205 | // Apply Filter only if on frontend and when course archive is running |
| 203 | 206 | $course_page_id = intval( Sensei()->settings->settings[ 'course_page' ] ); |
@@ -412,7 +415,7 @@ discard block |
||
| 412 | 415 | |
| 413 | 416 | return false; |
| 414 | 417 | |
| 415 | - }else{ |
|
| 418 | + } else{ |
|
| 416 | 419 | |
| 417 | 420 | return true; |
| 418 | 421 | |
@@ -446,7 +449,7 @@ discard block |
||
| 446 | 449 | |
| 447 | 450 | $wp_query = $modules_query; |
| 448 | 451 | |
| 449 | - }else{ |
|
| 452 | + } else{ |
|
| 450 | 453 | |
| 451 | 454 | wp_reset_query(); |
| 452 | 455 | |
@@ -478,7 +481,7 @@ discard block |
||
| 478 | 481 | |
| 479 | 482 | return have_posts(); |
| 480 | 483 | |
| 481 | - }else{ |
|
| 484 | + } else{ |
|
| 482 | 485 | |
| 483 | 486 | // if the loop has not been initiated check the first module has lessons |
| 484 | 487 | if( -1 == $sensei_modules_loop[ 'current' ] ){ |
@@ -622,7 +625,7 @@ discard block |
||
| 622 | 625 | |
| 623 | 626 | return true; |
| 624 | 627 | |
| 625 | - }else{ |
|
| 628 | + } else{ |
|
| 626 | 629 | |
| 627 | 630 | return false; |
| 628 | 631 | |
@@ -865,7 +868,9 @@ discard block |
||
| 865 | 868 | */ |
| 866 | 869 | function get_sensei_header(){ |
| 867 | 870 | |
| 868 | - if ( ! defined( 'ABSPATH' ) ) exit; |
|
| 871 | + if ( ! defined( 'ABSPATH' ) ) { |
|
| 872 | + exit; |
|
| 873 | + } |
|
| 869 | 874 | |
| 870 | 875 | get_header(); |
| 871 | 876 | |