diff --git a/includes/core/class-permalinks.php b/includes/core/class-permalinks.php
index 6fef7102..48779ce8 100644
--- a/includes/core/class-permalinks.php
+++ b/includes/core/class-permalinks.php
@@ -489,85 +489,5 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
return $user_in_url;
}
-
- /**
- * Get action url for admin use
- *
- * @param $action
- * @param $subaction
- *
- * @deprecated 2.6.9
- *
- * @return mixed|string|void
- */
- public function admin_act_url( $action, $subaction ) {
- _deprecated_function( __METHOD__, '2.6.9' );
- $url = add_query_arg(
- array(
- 'um_adm_action' => $action,
- 'sub' => $subaction,
- 'user_id' => um_user( 'ID' ),
- '_wpnonce' => wp_create_nonce( $action ),
- )
- );
- return $url;
- }
-
- /**
- * SEO canonical href bugfix
- *
- * @deprecated since version 2.1.7
- *
- * @todo remove since 2.7.0
- * @see function um_profile_remove_wpseo()
- */
- public function um_rel_canonical_() {
- _deprecated_function( __METHOD__, '2.1.7', 'um_profile_remove_wpseo()' );
- global $wp_the_query;
-
- if ( ! is_singular() )
- return;
-
- /**
- * UM hook
- *
- * @type filter
- * @title um_allow_canonical__filter
- * @description Allow canonical
- * @input_vars
- * [{"var":"$allow_canonical","type":"bool","desc":"Allow?"}]
- * @change_log
- * ["Since: 2.0"]
- * @usage
- *
- * @example
- *
- */
- $enable_canonical = apply_filters( "um_allow_canonical__filter", true );
-
- if( ! $enable_canonical )
- return;
-
- if ( !$id = $wp_the_query->get_queried_object_id() )
- return;
-
- if ( UM()->config()->permalinks['user'] == $id ) {
- $link = esc_url( $this->get_current_url() );
- echo "\n";
- return;
- }
-
- $link = get_permalink( $id );
- if ( $page = get_query_var( 'cpage' ) ) {
- $link = get_comments_pagenum_link( $page );
- echo "\n";
- }
- }
}
}
diff --git a/includes/core/um-actions-profile.php b/includes/core/um-actions-profile.php
index 980dd920..49e58869 100644
--- a/includes/core/um-actions-profile.php
+++ b/includes/core/um-actions-profile.php
@@ -584,31 +584,28 @@ function um_restore_default_roles( $user_id, $args, $to_update ) {
}
add_action( 'um_after_user_updated', 'um_restore_default_roles', 10, 3 );
-
/**
* If editing another user
*
* @param $args
*/
function um_editing_user_id_input( $args ) {
- if ( true === UM()->fields()->editing && 'profile' === UM()->fields()->set_mode && UM()->user()->target_id ) { ?>
-
+ if ( true === UM()->fields()->editing && 'profile' === UM()->fields()->set_mode && UM()->user()->target_id ) {
+ ?>
-
- admin()->enqueue()->css_url` param. Please use `UM()->admin()->enqueue()::get_url( 'css' );` or `self::get_url( 'js' );` instead
- `UM()->frontend()->enqueue()->js_url` param. Please use `UM()->frontend()->enqueue()::get_url( 'js' );` or `self::get_url( 'js' );` instead
- `UM()->frontend()->enqueue()->css_url` param. Please use `UM()->frontend()->enqueue()::get_url( 'css' );` or `self::get_url( 'js' );` instead
+ - Fully `UM()->permalinks()->um_rel_canonical_()` function. Because since version 2.1.7 there is used `um_profile_remove_wpseo();` alternative
+ - Fully `UM()->permalinks()->admin_act_url()` function. Since update for wp-admin links when there is nonce this function isn't used
- Fully `UM()->admin()->enqueue()->front_js_baseurl` param.
- Fully `UM()->admin()->enqueue()->front_css_baseurl` param.
- Fully `UM()->admin()->enqueue()->post_page` param.