Make WordPress Core

Changeset 27975


Ignore:
Timestamp:
04/06/2014 10:07:02 PM (13 years ago)
Author:
nacin
Message:

Apply checks in [27964] to wp_write_post(), which is unused and due for dismantling and deprecation.

see #27452.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/post.php

    r27964 r27975  
    658658                return edit_post();
    659659
    660         $translated = _wp_translate_postdata( false );
    661         if ( is_wp_error($translated) )
    662                 return $translated;
    663 
    664660        if ( isset($_POST['visibility']) ) {
    665661                switch ( $_POST['visibility'] ) {
    … …  
    677673                }
    678674        }
     675
     676        $translated = _wp_translate_postdata( false );
     677        if ( is_wp_error($translated) )
     678                return $translated;
    679679
    680680        // Create the post.
Note: See TracChangeset for help on using the changeset viewer.