- Timestamp:
- 11/30/2018 04:22:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r41916 r43952 191 191 if ( isset( $_GET['_wpnonce'] ) && wp_verify_nonce( wp_unslash( $_GET['_wpnonce'] ), $action ) ) { 192 192 $user = isset( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' ); 193 update_user_meta( get_current_user_id(), 'wporg_favorites', $user ); 193 194 // If the save url parameter is passed with a falsey value, don't save the favorite user. 195 if ( ! isset( $_GET['save'] ) || $_GET['save'] ) { 196 update_user_meta( get_current_user_id(), 'wporg_favorites', $user ); 197 } 194 198 } else { 195 199 $user = get_user_option( 'wporg_favorites' );
Note: See TracChangeset
for help on using the changeset viewer.