Ticket #4720: admin-functions.php.diff

File admin-functions.php.diff, 0.6 kB (added by xknown, 1 year ago)

Unset $_POSTno_filter? in write_post and edit_post

  • wp-admin/admin-functions.php

    old new  
    105105                $_POST['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss ); 
    106106                $_POST['post_date_gmt'] = get_gmt_from_date( $_POST['post_date'] ); 
    107107        } 
     108         
     109        unset($_POST['no_filter']); 
    108110 
    109111        // Create the post. 
    110112        $post_ID = wp_insert_post( $_POST ); 
     
    283285                        delete_meta( $key ); 
    284286        } 
    285287 
     288        unset($_POST['no_filter']); 
     289         
    286290        add_meta( $post_ID ); 
    287291 
    288292        wp_update_post( $_POST );