Ticket #25189: 25189.diff
| File 25189.diff, 539 bytes (added by , 12 years ago) |
|---|
-
wp-admin/includes/template.php
535 535 <?php 536 536 537 537 foreach ( $keys as $key ) { 538 if ( is_protected_meta( $key, 'post' ) ) 538 $post = get_post(); 539 if ( is_protected_meta( $key, 'post' ) || ! current_user_can( 'edit_post_meta', $post->ID, $key ) ) 539 540 continue; 540 541 echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>"; 541 542 }