Changeset 23508
- Timestamp:
- 02/28/2013 04:10:45 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ajax-actions.php
r23506 r23508 2141 2141 $showautosaves = isset( $_GET['showautosaves'] ) ? $_GET['showautosaves'] : ''; 2142 2142 $show_split_view = isset( $_GET['show_split_view'] ) ? $_GET['show_split_view'] : ''; 2143 $postid = isset( $_GET['post id'] ) ? absint( $_GET['postid'] ) : '';2143 $postid = isset( $_GET['post_id'] ) ? absint( $_GET['post_id'] ) : ''; 2144 2144 2145 2145 $comparetwomode = ( '' == $postid ) ? false : true; … … 2150 2150 // 2151 2151 $alltherevisions = array(); 2152 2153 2152 if ( '' == $postid ) 2154 2153 $postid = $compareto; … … 2159 2158 if ( ! $revisions = wp_get_post_revisions( $postid ) ) 2160 2159 return; 2160 2161 2161 2162 2162 //if we are comparing two revisions, the first 'revision' represented by the leftmost -
trunk/wp-admin/js/revisions.js
r23506 r23508 113 113 ajaxurl + 114 114 '?action=revisions-data&compareto=' + wpRevisionsSettings.post_id + 115 '& wpRevisionsSettings.post_id=' + wpRevisionsSettings.post_id +115 '&post_id=' + wpRevisionsSettings.post_id + 116 116 '&showautosaves=' + self._autosaves + 117 117 '&showsplitview=' + self._showsplitview + … … 121 121 ajaxurl + 122 122 '?action=revisions-data&compareto=' + self._revisions.at( self._left_diff - 1 ).get( 'ID' ) + 123 '& wpRevisionsSettings.post_id=' + wpRevisionsSettings.post_id +123 '&post_id=' + wpRevisionsSettings.post_id + 124 124 '&showautosaves=' + self._autosaves + 125 125 '&showsplitview=' + self._showsplitview + … … 130 130 ajaxurl + 131 131 '?action=revisions-data&compareto=' + self._revisions.at( self._right_diff - 1 ).get( 'ID' ) + 132 '& wpRevisionsSettings.post_id=' + wpRevisionsSettings.post_id +132 '&post_id=' + wpRevisionsSettings.post_id + 133 133 '&showautosaves=' + self._autosaves + 134 134 '&showsplitview=' + self._showsplitview +
Note: See TracChangeset
for help on using the changeset viewer.