Revisions improvements
* Corrected routing behavior * Simplified CSS for tooltips * Compare two mode for RTL * Support for posts without titles props adamsilverstein, ocean90. see #24425. git-svn-id: http://core.svn.wordpress.org/trunk@24578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -27,6 +27,12 @@ function wp_get_revision_ui_diff( $post, $compare_from, $compare_to ) {
|
||||
$compare_to = $temp;
|
||||
}
|
||||
|
||||
// Add default title if title field is empty
|
||||
if ( $compare_from && empty( $compare_from->post_title ) )
|
||||
$compare_from->post_title = __( '(no title)' );
|
||||
if ( empty( $compare_to->post_title ) )
|
||||
$compare_to->post_title = __( '(no title)' );
|
||||
|
||||
$return = array();
|
||||
|
||||
foreach ( _wp_post_revision_fields() as $field => $name ) {
|
||||
|
||||
Reference in New Issue
Block a user