Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix methods removed instead of deprecated in 2.3.0 #2847

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
Loading