Skip to content

Commit

Permalink
Add back methods to prevent fatal for users
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarssanchez committed Jan 22, 2025
1 parent d67ee18 commit dbf0639
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions includes/classes/Feature/Search/Weighting.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,13 @@ public function render_settings_page() {
/**
* Recursively renders each settings section and its children.
*
* @param string $post_type Current post type we're rendering
* @param array $field Current field to render
* @param array $current_values Current stored weighting values
*
* @deprecated
*/
public function render_settings_section() {
public function render_settings_section( $post_type, $field, $current_values ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
_doing_it_wrong(
__METHOD__,
esc_html( 'Weighting sections display are now handled via React components.' ),
Expand All @@ -375,9 +379,10 @@ public function handle_save() {
/**
* We need this method to test handle_save properly.
*
* @param string $redirect_url Redirect URL.
* @deprecated
*/
protected function redirect() {
protected function redirect( $redirect_url ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed,Generic.CodeAnalysis.UnusedFunctionParameter.Found
_doing_it_wrong(
__METHOD__,
esc_html( 'Weighting settings are now updated using the REST API, and do not redirect server-side.' ),
Expand All @@ -388,11 +393,12 @@ protected function redirect() {
/**
* Save weighting configuration for each searchable post_type.
*
* @param array $settings weighting settings
* @return void
* @since 3.4.1
* @deprecated
*/
public function save_weighting_configuration() {
public function save_weighting_configuration( $settings ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed,Generic.CodeAnalysis.UnusedFunctionParameter.Found
_doing_it_wrong(
__METHOD__,
esc_html( 'Weighting sections display are now handled via React components.' ),
Expand Down

0 comments on commit dbf0639

Please sign in to comment.