Search: Fix search plan detection#15156
Conversation
| 'type' => 'boolean', | ||
| 'default' => 0, | ||
| 'validate_callback' => __CLASS__ . '::validate_boolean', | ||
| 'jp_group' => 'search', |
There was a problem hiding this comment.
I think I added this because someone suggested it at some point. I was thinking it had more to do with documentation and grouping of the options in the api, but I am unsure.
|
This seems to break the settings page when the site is on a free plan: wp-admin/admin.php?page=jetpack#/performance |
gibrown
left a comment
There was a problem hiding this comment.
In addition to the performance settings tab breaking, when I toggle back and forth from my-plans to plans when i have a free plan and a search plan then the app crashes.
Maybe this has to do with me not having some options already set, or that they are already set?
✅ This was caused by a typo in one of the import statements.
✅ This was caused by an incorrect usage of React's useEffects function. Both issues have been fixed! |
gibrown
left a comment
There was a problem hiding this comment.
I think this is all working now... Code looks good.
* Search: Add Search plan to wp-admin Plans/My-Plans pages (#15011) * Add Instant Search feature gate * Add Jetpack Search to the Plans page * Instant Search: Add support in glance and performance sections (#15043) * Search: Add instant search auto config (#15026) * Significant refactoring of Plans pages, especially for Backups * Update the copy for search module. (#15123) * Search: Add search plan to my-plans page (#15095) * Search: Add pricing and tier information to Plans page (#15125) * Search: Fix search plan detection (#15156)
Changes proposed in this Pull Request:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Testing instructions:
Proposed changelog entry for your changes: