Ticket #35785: 35785.diff
| File 35785.diff, 720 bytes (added by , 10 years ago) |
|---|
-
src/wp-admin/js/post.js
940 940 941 941 $( '#publish' ).on( 'click', function() { 942 942 location = window.location.href; 943 location += ( location.indexOf( '?' ) !== -1 ) ? '&' : '?';944 location += 'wp-post-new-reload=true';945 943 946 window.history.replaceState( null, null, location ); 944 if ( window.location.href.indexOf('wp-post-new-reload') == -1 ) { 945 location += ( location.indexOf( '?' ) !== -1 ) ? '&' : '?'; 946 location += 'wp-post-new-reload=true'; 947 948 window.history.replaceState( null, null, location ); 949 } 947 950 }); 948 951 } 949 952 });