Make WordPress Core

Opened 3 weeks ago

Last modified 3 weeks ago

#63353 new defect (bug)

Invalid type false for permalink_structure property

Reported by: kkmuffme's profile kkmuffme Owned by:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version:
Component: Rewrite Rules Keywords: has-patch
Focuses: Cc:

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.


3 weeks ago
#1

  • Keywords has-patch added

#2 @sabernhardt
3 weeks ago

  • Description modified (diff)

@ankitmaru commented on PR #8742:


3 weeks 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.