Changeset 25591 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 09/24/2013 01:30:31 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r25472 r25591 501 501 502 502 /** 503 * {@internal Missing Short Description}}503 * Prints the form in the Custom Fields meta box. 504 504 * 505 505 * @since 1.2.0 506 */ 507 function meta_form() { 506 * 507 * @param WP_Post $post Optional. The post being edited. 508 */ 509 function meta_form( $post = null ) { 508 510 global $wpdb; 511 $post = get_post( $post ); 509 512 $limit = (int) apply_filters( 'postmeta_form_limit', 30 ); 510 513 $keys = $wpdb->get_col( " … … 536 539 537 540 foreach ( $keys as $key ) { 538 if ( is_protected_meta( $key, 'post' ) )541 if ( is_protected_meta( $key, 'post' ) || ! current_user_can( 'add_post_meta', $post->ID, $key ) ) 539 542 continue; 540 543 echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>";
Note: See TracChangeset
for help on using the changeset viewer.