- small warnings fixed;

This commit is contained in:
nikitozzzzzzz
2018-01-22 15:13:46 +02:00
parent ec807386af
commit 6a6c7abe63
2 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ if ( ! class_exists( 'Common' ) ) {
global $wp_query;
//We need main query
if ( $q == $wp_query->request ) {
if ( isset( $wp_query->request ) && $q == $wp_query->request ) {
if ( ! empty( $wp_query->query_vars['um_page'] ) ) {
+6 -3
View File
@@ -139,9 +139,11 @@ if ( ! class_exists( 'Shortcodes' ) ) {
}
/***
*** @load a compatible template
*/
/**
* Load a compatible template
*
* @param $tpl
*/
function load_template( $tpl ) {
$loop = ( $this->loop ) ? $this->loop : array();
@@ -150,6 +152,7 @@ if ( ! class_exists( 'Shortcodes' ) ) {
unset( $args['file'] );
unset( $args['theme_file'] );
unset( $args['tpl'] );
extract( $args );
}