Opened 10 years ago
Closed 10 years ago
#29636 closed defect (bug) (fixed)
Query args in paginate_links()
Reported by: | obenland | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | General | Keywords: | has-patch needs-refresh |
Focuses: | template | Cc: |
Description (last modified by )
Attachments (4)
Change History (21)
This ticket was mentioned in IRC in #wordpress-dev by obenland. View the logs.
10 years ago
#5
@
10 years ago
- Keywords needs-refresh added
These unit tests need to have URLs that are generated, not hardcoded
#6
@
10 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
In 29780:
#8
@
10 years ago
This unit test is continuously failing. See https://travis-ci.org/aaronjorbin/develop.wordpress/jobs/36779253
I'm investigating. It looks like we are setting permalink structure somewhere.
#9
@
10 years ago
Ha. I've been staring at this failure for the last week, and assumed it was my rig, so I ignored it.
#11
@
10 years ago
Above patch fixes the failure.
It stashes the permalink structure, reverts it, and then sets it back to how it was when we began.
#13
@
10 years ago
Makes sense. Above patch does it.
I looked into doing this for all classes, but it seems to break some other tests. I may try to revisit that in the future so our tests are better individual units.
#15
@
10 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
This test is still failing. (Every other time you run it. Whee!) [29913] sets the permastruct to the value of get_option( 'permalink_structure' )
, which is correct when you first run it, but wrong if you run it after the non-multisite tests are run. jorbin's .2.diff did it correctly, by setting it to .
Added a patch with additional UT. I'm not sure the query args need to be url-encoded. They are in Twenty Fourteen, but it looked like they are anyway, when I wrote the unit test.
Feedback on the unit test would also be greatly appreciated, not sure if it makes sense to test in that way.