Changeset 3055095
- Timestamp:
- 03/20/2024 09:00:51 AM (2 years ago)
- Location:
- multimanager-wp/trunk
- Files:
-
- 3 edited
-
README.txt (modified) (2 diffs)
-
includes/class-multi-manager-wp-rest-api.php (modified) (3 diffs)
-
multimanager-wp.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multimanager-wp/trunk/README.txt
r3028661 r3055095 4 4 Requires at least: 6.0 5 5 Tested up to: 6.4 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv3 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 64 64 65 65 == Changelog == 66 = 1.0.3 = 67 * Fix = skip wp_login action hook on impersonate 68 66 69 = 1.0.2 = 67 70 * New - New API endpoint - info - return some site information -
multimanager-wp/trunk/includes/class-multi-manager-wp-rest-api.php
r3028661 r3055095 381 381 */ 382 382 public function impersonate_user_nonce( WP_REST_Request $request ) { 383 ob_start(); 383 384 $action = sanitize_text_field( wp_unslash( $request->get_param( 'action' ) ) ); 384 385 $admin_name = sanitize_text_field( wp_unslash( $request->get_param( 'admin_name' ) ) ); … … 386 387 387 388 wp_cache_flush(); 389 ob_end_clean(); 388 390 return new WP_REST_Response( $data, 200 ); 389 391 } … … 1108 1110 wp_set_current_user( $user->ID ); 1109 1111 wp_set_auth_cookie( $user->ID ); 1110 do_action( 'wp_login', $user->user_login, $user ); 1112 // skip wp_login action due to 1113 // do_action( 'wp_login', $user->user_login, $user ); 1111 1114 1112 1115 return ( is_user_logged_in() and $current_user->user_login === $username ); -
multimanager-wp/trunk/multimanager-wp.php
r3028661 r3055095 5 5 * Plugin URI: https://www.icdsoft.com/en/hosting/wordpress-manager 6 6 * Description: This plugin helps you connect your site to the ICDSoft WordPress MultiManager toolkit, which allows you to manage multiple WordPress sites. 7 * Version: 1.0. 27 * Version: 1.0.3 8 8 * Author: ICDSoft Hosting 9 9 * Author URI: https://icdsoft.com … … 20 20 * Plugin version. 21 21 */ 22 const MULTIMANAGER_WP_VERSION = '1.0. 2';22 const MULTIMANAGER_WP_VERSION = '1.0.3'; 23 23 24 24 /**
Note: See TracChangeset
for help on using the changeset viewer.