WordPress.org

Make WordPress Core

Changeset 23534


Ignore:
Timestamp:
02/28/13 19:51:29 (3 years ago)
Author:
nacin
Message:

Ignore protected meta keys in meta_form(). see #18786.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r23457 r23534  
    536536 
    537537    foreach ( $keys as $key ) { 
     538        if ( is_protected_meta( $key, 'post' ) ) 
     539            continue; 
    538540        echo "\n<option value='" . esc_attr($key) . "'>" . esc_html($key) . "</option>"; 
    539541    } 
Note: See TracChangeset for help on using the changeset viewer.