- code review;

This commit is contained in:
nikitasinelnikov
2020-07-08 19:34:40 +03:00
parent ea86441823
commit 3d8b9f7cf4
4 changed files with 11 additions and 16 deletions
+2 -7
View File
@@ -30,18 +30,11 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
* Permalinks constructor.
*/
function __construct() {
add_action( 'init', array( &$this, 'set_current_url' ), 0 );
add_action( 'init', array( &$this, 'check_for_querystrings' ), 1 );
add_action( 'init', array( &$this, 'activate_account_via_email_link' ), 1 );
//add_action( 'um_user_after_updating_profile', array( &$this, 'profile_url' ), 1 );
/* @deprecated since version 2.1.7 */
//remove_action( 'wp_head', 'rel_canonical' );
//add_action( 'wp_head', array( &$this, 'um_rel_canonical_' ), 9 );
}
@@ -55,7 +48,9 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
/**
* SEO canonical href bugfix
*
* @deprecated since version 2.1.7
*
* @see function um_profile_remove_wpseo()
*/
function um_rel_canonical_() {