Make WordPress Core

Opened 18 months ago

Last modified 18 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 sabernhardt)

​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.


18 months ago
#1

  • Keywords has-patch added

#2 @sabernhardt
18 months ago

  • Description modified (diff)

​@ankitmaru commented on ​PR #8742:


18 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.