Opened 6 years ago
Closed 5 years ago
#47087 closed defect (bug) (fixed)
flush_rewrite_rules() should check $wp_rewrite->flush_rules() is callable before calling it
Reported by: | markjaquith | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | good-first-bug has-patch |
Focuses: | Cc: |
Description
I ran into this situation:
Uncaught Error: Call to a member function flush_rules() on null
when some code was running flush_rewrite_rules()
on shutdown.
flush_rewrite_rules()
should do a sanity check before calling, so it never causes a fatal error.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 45699: