Changeset 5724
- Timestamp:
- 06/18/2007 04:30:07 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/wp-admin/admin-functions.php
r5710 r5724 1110 1110 $post_ID = (int) $post_ID; 1111 1111 1112 $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' ); 1113 1112 1114 $metakeyselect = $wpdb->escape( stripslashes( trim( $_POST['metakeyselect'] ) ) ); 1113 1115 $metakeyinput = $wpdb->escape( stripslashes( trim( $_POST['metakeyinput'] ) ) ); … … 1124 1126 if ( $metakeyinput) 1125 1127 $metakey = $metakeyinput; // default 1128 1129 if ( in_array($metakey, $protected) ) 1130 return false; 1126 1131 1127 1132 $result = $wpdb->query( " … … 1144 1149 function update_meta( $mid, $mkey, $mvalue ) { 1145 1150 global $wpdb; 1151 1152 $protected = array( '_wp_attached_file', '_wp_attachment_metadata', '_wp_old_slug' ); 1153 1154 if ( in_array($mkey, $protected) ) 1155 return false; 1156 1146 1157 $mvalue = maybe_serialize( stripslashes( $mvalue )); 1147 1158 $mvalue = $wpdb->escape( $mvalue );
Note: See TracChangeset
for help on using the changeset viewer.