Skip to content

Commit

Permalink
Fix methods removed instead of deprecated in 2.3.0 (#2847)
Browse files Browse the repository at this point in the history
  • Loading branch information
yscik committed Aug 27, 2024
1 parent f89a227 commit 4da0dd0
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions includes/class-wp-job-manager-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,28 @@ public function filter_paginate_links( $link ) {
return Job_Dashboard_Shortcode::instance()->filter_paginate_links( $link );
}

/**
* Handles actions which need to be run before the shortcode e.g. post actions.
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
*/
public function shortcode_action_handler() {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::handle_actions' );
Job_Dashboard_Shortcode::instance()->handle_actions();
}

/**
* Handles actions on job dashboard.
*
* @throws Exception On action handling error.
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
*/
public function job_dashboard_handler() {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::handle_actions' );
Job_Dashboard_Shortcode::instance()->handle_actions();
}

/**
* Displays edit job form.
*
Expand Down Expand Up @@ -587,6 +609,36 @@ public function output_job_apply( $atts ) {
return ob_get_clean();
}

/**
* Add expiration details to the job dashboard date column.
*
* @param \WP_Post $job
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
*
* @output string
*/
public function job_dashboard_date_column_expires( $job ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::the_expiration_date' );
Job_Dashboard_Shortcode::instance()->the_expiration_date( $job );
}

/**
* Add job status to the job dashboard title column.
*
* @param \WP_Post $job
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
*
* @output string
*/
public function job_dashboard_title_column_status( $job ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::the_job_status' );
Job_Dashboard_Shortcode::instance()->the_status( $job );
}



}

WP_Job_Manager_Shortcodes::instance();

0 comments on commit 4da0dd0

Please sign in to comment.