mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fixed dynamic profile title;
- removed deprecated router class;
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user