Opened 15 months ago
Last modified 15 months ago
#63353 new defect (bug)
Invalid type false for permalink_structure property
| Reported by: | kkmuffme | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Rewrite Rules | Version: | |
| Severity: | trivial | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
class-wp-rewrite.php, line 1923
If the option is not set (e.g. when installing WP), get_option returns false, which will subsequently pass false to substr/str_ends_with which is invalid
(if strict_type were used, would be a fatal TypeError)
Change History (3)
This ticket was mentioned in PR #8742 on WordPress/wordpress-develop by @kkmuffme.
15 months ago
#1
- Keywords has-patch added
@ankitmaru commented on PR #8742:
15 months ago
#3
Hi @kkmuffme
I tested it and it seems to be working fine.
This looks like a good solution.
Thank you for your fix.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/63353