WordPress.org

Make WordPress Core

Ticket #7346: 7346.patch

File 7346.patch, 671 bytes (added by jamescollins, 6 years ago)

Patch for WP 2.6.2 (revision 8852)

  • post.php

     
    332332        $metakeyselect = $wpdb->escape( stripslashes( trim( $_POST['metakeyselect'] ) ) ); 
    333333        $metakeyinput = $wpdb->escape( stripslashes( trim( $_POST['metakeyinput'] ) ) ); 
    334334        $metavalue = maybe_serialize( stripslashes( (trim( $_POST['metavalue'] ) ) )); 
    335         $metavalue = $wpdb->escape( $metavalue ); 
    336335 
    337336        if ( ('0' === $metavalue || !empty ( $metavalue ) ) && ((('#NONE#' != $metakeyselect) && !empty ( $metakeyselect) ) || !empty ( $metakeyinput) ) ) { 
    338337                // We have a key/value pair. If both the select and the