Changeset 59727
- Timestamp:
- 01/29/2025 05:38:49 PM (3 months ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/common.js
r59134 r59727 1311 1311 }; 1312 1312 1313 // Stores initial pagination value for comparison. 1314 var initialPagedValue = document.querySelector( '#current-page-selector' ).value; 1315 1313 1316 $( '.bulkactions' ).parents( 'form' ).on( 'submit', function( event ) { 1314 1317 var form = this, 1315 1318 submitterName = event.originalEvent && event.originalEvent.submitter ? event.originalEvent.submitter.name : false; 1319 1320 var currentPagedValue = form.querySelector( '#current-page-selector' ).value; 1321 1322 if ( initialPagedValue !== currentPagedValue ) { 1323 return; // Pagination form submission. 1324 } 1316 1325 1317 1326 // Observe submissions from posts lists for 'bulk_action' or users lists for 'new_role'. -
trunk/src/wp-admin/edit-tags.php
r58918 r59727 216 216 if ( $pagenum > 1 ) { 217 217 $location = add_query_arg( 'paged', $pagenum, $location ); // $pagenum takes care of $total_pages. 218 } 219 if ( 1 === $pagenum ) { 220 $location = remove_query_arg( 'paged', $location ); 218 221 } 219 222
Note: See TracChangeset
for help on using the changeset viewer.