mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
- small warnings fixed;
This commit is contained in:
@@ -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'] ) ) {
|
||||
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user