Changeset 50255
- Timestamp:
- 02/08/2021 09:37:34 PM (4 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r49936 r50255 2304 2304 </form> 2305 2305 <form id="toggle-custom-fields-form" method="post" action="<?php echo esc_attr( admin_url( 'post.php' ) ); ?>"> 2306 <?php wp_nonce_field( 'toggle-custom-fields' ); ?>2306 <?php wp_nonce_field( 'toggle-custom-fields', 'toggle-custom-fields-nonce' ); ?> 2307 2307 <input type="hidden" name="action" value="toggle-custom-fields" /> 2308 2308 </form> -
trunk/src/wp-admin/post.php
r49125 r50255 340 340 341 341 case 'toggle-custom-fields': 342 check_admin_referer( 'toggle-custom-fields' );342 check_admin_referer( 'toggle-custom-fields', 'toggle-custom-fields-nonce' ); 343 343 344 344 $current_user_id = get_current_user_id();
Note: See TracChangeset
for help on using the changeset viewer.