[wp-trac] [WordPress Trac] #63353: Invalid type false for permalink_structure property

WordPress Trac noreply at wordpress.org
Fri Apr 25 21:55:37 UTC 2025


#63353: Invalid type false for permalink_structure property
---------------------------+-----------------------------
 Reporter:  kkmuffme       |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:
 Severity:  trivial        |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes
 /class-wp-rewrite.php#L1923

 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_types were used, would be a fatal TypeError)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63353>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list