From 036faaa964f84fe976e1105ea5115f59f94f66c4 Mon Sep 17 00:00:00 2001 From: nikitozzzzzzz Date: Tue, 27 Nov 2018 13:53:34 +0200 Subject: [PATCH] - removed deprecated "UM_TEXTDOMAIN" constant; - removed deprecated function UM()->get_ajax_route(); --- includes/admin/core/class-admin-metabox.php | 1 + includes/class-functions.php | 37 --------------------- readme.txt | 10 +++++- ultimate-member.php | 9 +---- 4 files changed, 11 insertions(+), 46 deletions(-) diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index 5aabaee3..4da4b133 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -85,6 +85,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { /** + * Hide Woocommerce Shop page restrict content metabox * @param $hide * * @return bool diff --git a/includes/class-functions.php b/includes/class-functions.php index f2969d30..faf15b6f 100644 --- a/includes/class-functions.php +++ b/includes/class-functions.php @@ -54,43 +54,6 @@ if ( ! class_exists( 'UM_Functions' ) ) { } - /** - * Get ajax routed URL - * - * @param string $route - * @param string $method - * - * @return string - */ - public function get_ajax_route( $route, $method ) { - - $route = str_replace( array( '\\', '/' ), '!', $route ); - $ip = isset( $_SERVER['REMOTE_ADDR'] ) ? $_SERVER['REMOTE_ADDR'] : ''; - $nonce = wp_create_nonce( $ip . get_current_user_id() . $route . $method ); - - if ( is_admin() ) { - $url = add_query_arg( array( - 'action' => 'um_router', - 'um_action' => 'route', - 'um_resource' => $route, - 'um_method' => $method, - 'um_verify' => $nonce - ), get_admin_url( null, 'admin-ajax.php' ) ); - } else if ( get_option( 'permalink_structure' ) ) { - $url = get_home_url( null, 'um-api/route/' . $route . '/' . $method . '/' . $nonce ); - } else { - $url = add_query_arg( array( - 'um_page' => 'api', - 'um_action' => 'route', - 'um_resource' => $route, - 'um_method' => $method, - 'um_verify' => $nonce - ), get_home_url() ); - } - return $url; - } - - /** * Help Tip displaying * diff --git a/readme.txt b/readme.txt index 4fbec53a..663b93b4 100644 --- a/readme.txt +++ b/readme.txt @@ -6,7 +6,7 @@ Donate link: Tags: community, member, membership, user-profile, user-registration Requires at least: 4.7 Tested up to: 4.9 -Stable tag: 2.0.33 +Stable tag: 2.0.34 License: GNU Version 2 or Any Later Version License URI: http://www.gnu.org/licenses/gpl-3.0.txt @@ -137,6 +137,14 @@ The plugin works with popular caching plugins by automatically excluding Ultimat = Important: UM2.0+ is a significant update to the code base from 1.3.88. Please make sure you take a full-site backup with restore point before updating the plugin = += 2.0.34: December , 2018 = + +* Bugfixes: + +* Deprecated: + - removed "UM_TEXTDOMAIN" constant; + - removed function UM()->get_ajax_route(); + = 2.0.33: November 22, 2018 = * Bugfixes: diff --git a/ultimate-member.php b/ultimate-member.php index d0a901f5..898b99bb 100644 --- a/ultimate-member.php +++ b/ultimate-member.php @@ -3,7 +3,7 @@ Plugin Name: Ultimate Member Plugin URI: http://ultimatemember.com/ Description: The easiest way to create powerful online communities and beautiful user profiles with WordPress -Version: 2.0.33 +Version: 2.0.34 Author: Ultimate Member Author URI: http://ultimatemember.com/ Text Domain: ultimate-member @@ -15,13 +15,6 @@ defined( 'ABSPATH' ) || exit; require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $plugin_data = get_plugin_data( __FILE__ ); -/** - * Textdomain constant backward compatibility will be removed in future releases - * - * @todo remove in future releases - */ -define( 'UM_TEXTDOMAIN', 'ultimate-member' ); - define( 'um_url', plugin_dir_url( __FILE__ ) ); define( 'um_path', plugin_dir_path( __FILE__ ) ); define( 'um_plugin', plugin_basename( __FILE__ ) );