Changeset 12336
- Timestamp:
- 12/08/2009 12:48:39 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12328 r12336 560 560 $metakeyselect = isset($_POST['metakeyselect']) ? stripslashes( trim( $_POST['metakeyselect'] ) ) : ''; 561 561 $metakeyinput = isset($_POST['metakeyinput']) ? stripslashes( trim( $_POST['metakeyinput'] ) ) : ''; 562 $metavalue = isset($_POST['metavalue']) ? maybe_serialize( stripslashes( trim( $_POST['metavalue'] ) ) ) : ''; 562 $metavalue = isset($_POST['metavalue']) ? maybe_serialize( stripslashes_deep( $_POST['metavalue'] ) ) : ''; 563 if ( is_string($metavalue) ) 564 $metavalue = trim( $metavalue ); 563 565 564 566 if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) { … … 687 689 wp_cache_delete($post_id, 'post_meta'); 688 690 689 $meta_value = maybe_serialize( stripslashes ( $meta_value ) );691 $meta_value = maybe_serialize( stripslashes_deep( $meta_value ) ); 690 692 $meta_id = (int) $meta_id; 691 693
Note: See TracChangeset
for help on using the changeset viewer.