mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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: https://develop.svn.wordpress.org/trunk@24578 602fd350-edb4-49c9-b593-d223f7449a82
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