In case rocket_atf_warmup_links filter is given a wrong input, the fetch mechanism should default to 10 URLs + home #6576
Labels
effort: [XS]
< 1 day of estimated development time
priority: low
Issues that can wait
severity: minor
Defect that does not affect functionality
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
Using any other input but integer inside rocket_atf_warmup_links filter, filter will not work (which is expected) but nor will there be any URLs fetched.
To Reproduce
Steps to reproduce the behavior:
add_filter( 'rocket_atf_warmup_links_number', function () { return ; });
Expected behavior
In the case where
rocket_atf_warmup_links_number
filter is given the wrong kind of input, then the fetch mechanism should default to 10 URLs + home.Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
The text was updated successfully, but these errors were encountered: