WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/06/2013 10:48:14 AM (8 years ago)
Author:
ocean90
Message:

Revisions improvements

  • Corrected routing behavior
  • Simplified CSS for tooltips
  • Compare two mode for RTL
  • Support for posts without titles

props adamsilverstein, ocean90. see #24425.

File:
1 edited

Legend:

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

    r24529 r24578  
    2727        $compare_to = $temp;
    2828    }
     29
     30    // Add default title if title field is empty
     31    if ( $compare_from && empty( $compare_from->post_title ) )
     32        $compare_from->post_title = __( '(no title)' );
     33    if ( empty( $compare_to->post_title ) )
     34        $compare_to->post_title = __( '(no title)' );
    2935
    3036    $return = array();
Note: See TracChangeset for help on using the changeset viewer.