Ticket #23897: 23897.3.diff
File 23897.3.diff, 2.7 KB (added by , 11 years ago) |
---|
-
wp-admin/includes/ajax-actions.php
2174 2174 2175 2175 $count = -1; 2176 2176 2177 //reverse the list to start with oldes revision2177 //reverse the list to start with oldest revision 2178 2178 $revisions = array_reverse( $revisions ); 2179 2179 2180 2180 $previous_revision_id = 0; … … 2191 2191 $count++; 2192 2192 // return blank data for diffs to the left of the left handle (for right handel model) 2193 2193 // or to the right of the right handle (for left handel model) 2194 if ( ( 0 != $left_handle_at && $count < $left_handle_at ) ||2195 ( 0 != $right_handle_at && $count > ( $right_handle_at - 2 ) ) ) {2194 if ( ! is_rtl() && ( ( 0 != $left_handle_at && $count < $left_handle_at ) || 2195 ( 0 != $right_handle_at && $count > ( $right_handle_at - 2 ) ) ) ) { 2196 2196 $all_the_revisions[] = array ( 2197 2197 'ID' => $revision->ID, 2198 2198 ); … … 2286 2286 2287 2287 endforeach; 2288 2288 2289 if ( is_rtl() && $compare_two_mode ) { 2290 $all_the_revisions = array_reverse( $all_the_revisions ); 2291 } 2292 2289 2293 echo json_encode( $all_the_revisions ); 2290 2294 exit(); 2291 2295 } -
wp-admin/css/wp-admin-rtl.css
955 955 11.2 - Post Revisions 956 956 ------------------------------------------------------------------------------*/ 957 957 958 table.diff td, table.diff th { 959 font-family: Consolas, Monaco, monospace; 958 #toggle-revision-compare-mode { 959 right: auto; 960 left: 0; 960 961 } 961 962 963 #loading-status { 964 right: auto; 965 left: 170px; 966 } 967 968 #loading-status .spinner { 969 float: right; 970 } 971 972 .diff-title { 973 float: right; 974 } 975 976 .diff-title strong { 977 text-align: left; 978 float: right; 979 margin-right: 0; 980 margin-left: 5px; 981 } 982 983 #restore-revision { 984 margin-left: 0; 985 margin-right: 10px; 986 } 987 988 .diff-col-title-added, 989 .diff-col-title-removed { 990 text-align: right; 991 float: right; 992 } 993 994 .diff-col-title-added { 995 float: left; 996 } 997 998 .ui-tooltip-content img { 999 float: right; 1000 margin-right: 0; 1001 margin-left: 5px; 1002 } 1003 1004 962 1005 /*------------------------------------------------------------------------------ 963 1006 11.3 - Featured Images 964 1007 ------------------------------------------------------------------------------*/ -
wp-admin/css/wp-admin.css
3732 3732 3733 3733 .diff-loading .spinner { 3734 3734 clear: both; 3735 margin-left: auto; 3736 margin-right: auto; 3735 margin: 0 auto; 3737 3736 display: block; 3738 3737 float: none; 3739 3738 }