- fixed dynamic profile title;

- removed deprecated router class;
This commit is contained in:
nikitozzzzzzz
2018-11-28 10:19:20 +02:00
parent e60dae6f39
commit 304845b255
5 changed files with 10 additions and 176 deletions
-19
View File
@@ -20,7 +20,6 @@ if ( ! class_exists( 'um\core\AJAX_Common' ) ) {
function __construct() {
// UM_EVENT => nopriv
$ajax_actions = array(
'router' => false
);
foreach ( $ajax_actions as $action => $nopriv ) {
@@ -54,24 +53,6 @@ if ( ! class_exists( 'um\core\AJAX_Common' ) ) {
add_action( 'wp_ajax_nopriv_um_resize_image', array( UM()->files(), 'ajax_resize_image' ) );
add_action( 'wp_ajax_um_resize_image', array( UM()->files(), 'ajax_resize_image' ) );
/**
* Fallback for ajax urls
* @uses action hooks: wp_head, admin_head
*/
//add_action( 'wp_head', array( $this, 'ultimatemember_ajax_urls' ) );
//add_action( 'admin_head', array( $this, 'ultimatemember_ajax_urls' ) );
}
/**
* Router method
*/
function router() {
$router = new Router();
$router->backend_requests();
}
}
}