Revert to stable version

This commit is contained in:
ultimatemember
2015-01-14 00:16:44 +02:00
parent b4d7f80d24
commit 95d244b2f3
5 changed files with 40 additions and 2 deletions
+18
View File
@@ -120,6 +120,24 @@
return false;
}
/***
*** @Is core URL
***/
function um_is_core_uri() {
global $ultimatemember;
$array = $ultimatemember->permalinks->core;
$current_url = trailingslashit( $ultimatemember->permalinks->get_current_url(true) );
if ( !isset( $array ) || !is_array( $array ) ) return false;
foreach( $array as $k => $id ) {
$page_url = trailingslashit( get_permalink( $id ) );
if ( strstr( $current_url, $page_url ) )
return true;
}
return false;
}
/***
*** @Check value of queried search in text input
***/