Changeset 5737
- Timestamp:
- 06/20/2007 07:21:08 PM (18 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/admin-functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/admin-functions.php
r5657 r5737 939 939 $post_ID = (int) $post_ID; 940 940 941 $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); 942 941 943 $metakeyselect = $wpdb->escape(stripslashes(trim($_POST['metakeyselect']))); 942 944 $metakeyinput = $wpdb->escape(stripslashes(trim($_POST['metakeyinput']))); … … 953 955 if ($metakeyinput) 954 956 $metakey = $metakeyinput; // default 957 958 if ( in_array($metakey, $protected) ) 959 return false; 955 960 956 961 $result = $wpdb->query(" … … 971 976 function update_meta($mid, $mkey, $mvalue) { 972 977 global $wpdb; 978 979 $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug', '_wp_page_template' ); 980 981 if ( in_array($mkey, $protected) ) 982 return false; 983 973 984 $mvalue = maybe_serialize(stripslashes($mvalue)); 974 985 $mvalue = $wpdb->escape($mvalue);
Note: See TracChangeset
for help on using the changeset viewer.