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

Release WP Job Manager 2.3.0 #2815

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions includes/abstracts/abstract-wp-job-manager-form.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public function clear_fields() {
* Enqueue the scripts for the form.
*/
public function enqueue_scripts() {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager\WP_Job_Manager_Form::enqueue_scripts' );
_deprecated_function( __METHOD__, '2.3.0', 'WP_Job_Manager\WP_Job_Manager_Form::enqueue_scripts' );
WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->enqueue_scripts();
}

Expand All @@ -332,7 +332,7 @@ public function enqueue_scripts() {
* @deprecated
*/
public function display_recaptcha_field() {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager\WP_Job_Manager_Form::display_recaptcha_field' );
_deprecated_function( __METHOD__, '2.3.0', 'WP_Job_Manager\WP_Job_Manager_Form::display_recaptcha_field' );
WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->display_recaptcha_field();
}

Expand All @@ -346,7 +346,7 @@ public function display_recaptcha_field() {
* @return bool|\WP_Error
*/
public function validate_recaptcha_field( $success ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager\WP_Job_Manager_Form::validate_recaptcha_field' );
_deprecated_function( __METHOD__, '2.3.0', 'WP_Job_Manager\WP_Job_Manager_Form::validate_recaptcha_field' );
return WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->validate_recaptcha_field( $success );
}

Expand All @@ -358,7 +358,7 @@ public function validate_recaptcha_field( $success ) {
* @return bool
*/
public function is_recaptcha_available() {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager\WP_Job_Manager_Form::is_recaptcha_available' );
_deprecated_function( __METHOD__, '2.3.0', 'WP_Job_Manager\WP_Job_Manager_Form::is_recaptcha_available' );
return WP_Job_Manager\WP_Job_Manager_Recaptcha::instance()->is_recaptcha_available();
}

Expand Down
2 changes: 1 addition & 1 deletion includes/class-job-dashboard-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Job Dashboard Shortcode.
*
* @since $$next-version$$
* @since 2.3.0
*/
class Job_Dashboard_Shortcode {

Expand Down
2 changes: 1 addition & 1 deletion includes/class-job-listing-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Job_Listing_Stats {
/**
* Stats for a single job listing.
*
* @since $$next-version$$
* @since 2.3.0
*
* @param int $job_id
* @param \DateTimeInterface[] $date_range Array of start and end date. Defaults to a range from the job's publishing date to the current day.
Expand Down
2 changes: 1 addition & 1 deletion includes/class-job-overlay.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* Job details overlay.
*
* @since $$next-version$$
* @since 2.3.0
*/
class Job_Overlay {

Expand Down
2 changes: 1 addition & 1 deletion includes/class-stats-dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Job listing stats for the jobs dashboard.
*
* @since $$next-version$$
* @since 2.3.0
*/
class Stats_Dashboard {

Expand Down
2 changes: 1 addition & 1 deletion includes/class-stats-script.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Add and handle frontend script to collect stats.
*
* @since $$next-version$$
* @since 2.3.0
*/
class Stats_Script {
use Singleton;
Expand Down
2 changes: 1 addition & 1 deletion includes/class-stats.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Collect and retrieve job statistics.
*
* @since $$next-version$$
* @since 2.3.0
*/
class Stats {
use Singleton;
Expand Down
4 changes: 2 additions & 2 deletions includes/class-wp-job-manager-recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* WP_Job_Manager_Recaptcha class.
*
* @since $$next-version$$
* @since 2.3.0
*/
class WP_Job_Manager_Recaptcha {

Expand Down Expand Up @@ -233,7 +233,7 @@ public function validate_recaptcha_field( $success ) {
*
* The score tolerance determines how strict the reCAPTCHA v3 validation is. A higher tolerance allows more leniency in accepting scores. A higher score means more certainty that the user is human.
*
* @since $$next-version$$
* @since 2.3.0
*
* @param float $score_tolerance The score tolerance value. Default is 0.5.
*/
Expand Down
16 changes: 8 additions & 8 deletions includes/class-wp-job-manager-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,53 +105,53 @@ public function submit_job_form( $atts = [] ) {
/**
* Handles shortcode which lists the logged in user's jobs.
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
* @deprecated 2.3.0 - Moved to Job_Dashboard_Shortcode.
*
* @param array $atts
* @return string
*/
public function job_dashboard( $atts ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::output_job_dashboard_shortcode' );
_deprecated_function( __METHOD__, '2.3.0', 'Job_Dashboard_Shortcode::output_job_dashboard_shortcode' );

return Job_Dashboard_Shortcode::instance()->output_job_dashboard( $atts );
}

/**
* Get the actions available to the user for a job listing on the job dashboard page.
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
* @deprecated 2.3.0 - Moved to Job_Dashboard_Shortcode.
*
* @param WP_Post $job The job post object.
*
* @return array
*/
public function get_job_actions( $job ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::get_job_actions' );
_deprecated_function( __METHOD__, '2.3.0', 'Job_Dashboard_Shortcode::get_job_actions' );

return Job_Dashboard_Shortcode::instance()->get_job_actions( $job );
}

/**
* Filters the url from paginate_links to avoid multiple calls for same action in job dashboard
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
* @deprecated 2.3.0 - Moved to Job_Dashboard_Shortcode.
*
* @param string $link
* @return string
*/
public function filter_paginate_links( $link ) {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::filter_paginate_links' );
_deprecated_function( __METHOD__, '2.3.0', 'Job_Dashboard_Shortcode::filter_paginate_links' );

return Job_Dashboard_Shortcode::instance()->filter_paginate_links( $link );
}

/**
* Displays edit job form.
*
* @deprecated $$next-version$$ - Moved to Job_Dashboard_Shortcode.
* @deprecated 2.3.0 - Moved to Job_Dashboard_Shortcode.
*/
public function edit_job() {
_deprecated_function( __METHOD__, '$$next-version$$', 'Job_Dashboard_Shortcode::edit_job' );
_deprecated_function( __METHOD__, '2.3.0', 'Job_Dashboard_Shortcode::edit_job' );

Job_Dashboard_Shortcode::instance()->edit_job();
}
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wp-job-manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function __construct() {
/**
* Controls whether promoted jobs are enabled.
*
* @since $$next-version$$
* @since 2.3.0
*
* @param bool $enable_promoted_jobs Whether promoted jobs are enabled.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/ui/class-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private function generate_inline_css() {
*
* @param string|false $color CSS color definition.
*
* @since $$next-version$$
* @since 2.3.0
*/
$vars['--jm-ui-accent-color'] = apply_filters( 'job_manager_ui_accent_color', $vars['--jm-ui-accent-color'] ?? false );

Expand Down
Loading
Loading