Make WordPress Core

Changeset 5733


Ignore:
Timestamp:
06/19/2007 10:42:25 PM (15 years ago)
Author:
ryan
Message:

Protect _wp_page_template too.

File:
1 edited

Legend:

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

    r5723 r5733  
    337337    $post_ID = (int) $post_ID;
    338338
    339     $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' );
     339    $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' );
    340340
    341341    $metakeyselect = $wpdb->escape( stripslashes( trim( $_POST['metakeyselect'] ) ) );
     
    412412    global $wpdb;
    413413
    414     $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' );
     414    $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' );
    415415
    416416    if ( in_array($mkey, $protected) )
Note: See TracChangeset for help on using the changeset viewer.