Changeset 37145 for trunk/src/wp-admin/includes/plugin-install.php
- Timestamp:
- 03/30/2016 06:35:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/plugin-install.php
r36618 r37145 301 301 */ 302 302 function install_plugins_favorites_form() { 303 $user = ! empty( $_GET['user'] ) ? wp_unslash( $_GET['user'] ) : get_user_option( 'wporg_favorites' ); 303 $user = get_user_option( 'wporg_favorites' ); 304 $action = 'save_wporg_username_' . get_current_user_id(); 304 305 ?> 305 306 <p class="install-help"><?php _e( 'If you have marked plugins as favorites on WordPress.org, you can browse them here.' ); ?></p> … … 310 311 <input type="search" id="user" name="user" value="<?php echo esc_attr( $user ); ?>" /> 311 312 <input type="submit" class="button" value="<?php esc_attr_e( 'Get Favorites' ); ?>" /> 313 <input type="hidden" id="wporg-username-nonce" name="_wpnonce" value="<?php echo esc_attr( wp_create_nonce( $action ) ); ?>" /> 312 314 </p> 313 315 </form>
Note: See TracChangeset
for help on using the changeset viewer.