[wp-trac] [WordPress Trac] #53868: Add option to `paginate_links` to apply format on all pages

WordPress Trac noreply at wordpress.org
Fri Nov 12 18:30:52 UTC 2021


#53868: Add option to `paginate_links` to apply format on all pages
-------------------------------------------------+-------------------------
 Reporter:  ntsekouras                           |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.9
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests has-        |     Focuses:
  testing-info                                   |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests has-
     testing-info


Comment:

 = Test Report to Reproduce

 Env:
 * WordPress: `trunk` 5.9-alpha
 * OS: macOS Big Sur
 * Browser: Firefox
 * Plugins: none
 * Theme: Twenty Twenty-Two (TT2)

 == Test 1: Query Block

 Steps to setup the query block page:
 1. Create a couple of posts - no content is needed
 2. Create a page and insert Query Loop block, set the Items per Page to 1
 and make sure the inherit is false. After that insert a Query Pagination
 block inside Query Loop.
 3. Save and in front-end navigate to the second page of the query.
 4. Observe that the link for the first page is pointing to the current
 url.

 Results:
 * Clicked on `Next Page` =>
 `http://localhost:8889/test-3/?cst&query-147-page=2`
 * Clicked on `Previous Pate` =>
 `http://localhost:8889/test-3/?cst&query-147-page=1`
 * Clicked on `Next Page`
 * Clicked on `1` => `http://localhost:8889/test-3/?cst`
 * Clicked on page in menu to reset the URL
 * Clicked on `2` => `http://localhost:8889/test-3/?query-147-page=2&cst`

 == Test 2: Classic Posts Page

 Steps:
 1. Go to `Settings` > `Reading`
 2. Set `Blog pages show at most` to 1
 3. Go to home page
 4. Click through the pagination and observe the `1` URL

 Results:
 * Clicked on `Next Page` => `http://localhost:8889/page/2/`
 * Clicked on `Previous Page` => `http://localhost:8889/`
 * Clicked on `2` => `http://localhost:8889/page/2/`
 * Clicked on `1` => `http://localhost:8889/`
 * Clicked on `3` => `http://localhost:8889/page/3/`
 * Clicked on `1` => `http://localhost:8889/`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53868#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list