Skip to content

Commit

Permalink
Merge pull request #2599 from Automattic/release/wp-job-manager-1.42.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yscik authored Oct 4, 2023
2 parents 8f631c2 + 1238d91 commit 60c87c7
Show file tree
Hide file tree
Showing 15 changed files with 279 additions and 134 deletions.
2 changes: 1 addition & 1 deletion includes/admin/class-wp-job-manager-cpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ public function custom_columns( $column ) {
/**
* Fires after the job title in the Job Listings admin list table.
*
* @since $$next-version$$
* @since 1.42.0
*
* @param WP_Post $post The current job listing post object.
*/
Expand Down
6 changes: 3 additions & 3 deletions includes/admin/class-wp-job-manager-promoted-jobs-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Handles promoted jobs functionality.
*
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Promoted_Jobs_Admin {
/**
Expand All @@ -34,15 +34,15 @@ class WP_Job_Manager_Promoted_Jobs_Admin {
* The single instance of the class.
*
* @var self
* @since $$next-version$$
* @since 1.42.0
*/
private static $instance = null;

/**
* Allows for accessing single instance of class. Class should only be constructed once per call.
*
* @return self Main instance.
* @since $$next-version$$
* @since 1.42.0
* @static
*/
public static function instance() {
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wp-job-manager-usage-tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected function get_event_prefix() {
/**
* Get the text domain used in the plugin. Deprecated - use 'wp-job-manager' directly.
*
* @deprecated $$next-version$$
* @deprecated 1.42.0
*
* @return string
*/
Expand Down
4 changes: 2 additions & 2 deletions includes/helper/class-wp-job-manager-helper-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ public static function instance() {
/**
* Checks if there is an update for the plugin using the WPJobManager.com API.
*
* @deprecated $$next-version$$ Use WP_Job_Manager_Helper_API::bulk_update_check() instead.
* @deprecated 1.42.0 Use WP_Job_Manager_Helper_API::bulk_update_check() instead.
*
* @param array $args The arguments to pass to the endpoint.
* @return array|false The response, or false if the request failed.
*/
public function plugin_update_check( $args ) {
_deprecated_file( __METHOD__, '$$next-version$$', 'WP_Job_Manager_Helper_API::bulk_update_check' );
_deprecated_function( __METHOD__, '1.42.0', 'WP_Job_Manager_Helper_API::bulk_update_check' );

return false;
}
Expand Down
16 changes: 8 additions & 8 deletions includes/helper/class-wp-job-manager-helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,27 +104,27 @@ public function __call( $name, $arguments ) {
$deprecated_methods = [
'has_licenced_products' => [
'replacement' => [ $this, 'has_licensed_products' ],
'version' => '$$next-version$$',
'version' => '1.42.0',
],
'get_plugin_licence' => [
'replacement' => [ $this, 'get_plugin_license' ],
'version' => '$$next-version$$',
'version' => '1.42.0',
],
'licence_output' => [
'replacement' => [ $this, 'license_output' ],
'version' => '$$next-version$$',
'version' => '1.42.0',
],
'licence_error_notices' => [
'replacement' => [ $this, 'maybe_add_license_error_notices' ],
'version' => '1.33.0',
],
'activate_licence' => [
'replacement' => [ $this, 'activate_license' ],
'version' => '$$next-version$$',
'version' => '1.42.0',
],
'deactivate_licence' => [
'replacement' => [ $this, 'deactivate_license' ],
'version' => '$$next-version$$',
'version' => '1.42.0',
],
];

Expand Down Expand Up @@ -591,7 +591,7 @@ public function extra_headers( $headers ) {
/**
* Returns list of installed WPJM plugins with managed licenses indexed by product ID.
*
* @since $$next-version$$ Added required $keyed_by_filename parameter.
* @since 1.42.0 Added required $keyed_by_filename parameter.
*
* @param bool $active_only Only return active plugins.
* @param bool $keyed_by_filename Key by plugin filename instead of product slug. Allows for multiple plugins with the same product slug.
Expand All @@ -603,7 +603,7 @@ public function get_installed_plugins( $active_only = true, $keyed_by_filename =
}

if ( null === $keyed_by_filename ) {
_doing_it_wrong( __METHOD__, 'The $keyed_by_filename parameter is required.', '$$next-version$$' );
_doing_it_wrong( __METHOD__, 'The $keyed_by_filename parameter is required.', '1.42.0' );
$keyed_by_filename = false;
}

Expand All @@ -614,7 +614,7 @@ public function get_installed_plugins( $active_only = true, $keyed_by_filename =
* that get_plugins() is called before WPJM has a chance to register its custom plugin headers.
*
* @since 1.29.1
* @since $$next-version$$ Only do this when get_plugins was called before this filter.
* @since 1.42.0 Only do this when get_plugins was called before this filter.
*
* @param bool $clear_plugin_cache True if we should clear the plugin cache.
*/
Expand Down
2 changes: 1 addition & 1 deletion includes/helper/class-wp-job-manager-site-trust-token.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Helper functions used for creating and validating tokens used for verification with WPJobManager.com.
*
* @package wp-job-manager
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Site_Trust_Token {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Handles functionality related to the Promoted Jobs REST API.
*
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Promoted_Jobs_API {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/**
* Notifies wpjobmanager.com when a Job Listing changes.
*
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Promoted_Jobs_Notifications {

Expand Down Expand Up @@ -62,14 +62,14 @@ class WP_Job_Manager_Promoted_Jobs_Notifications {
* The single instance of the class.
*
* @var self
* @since $$next-version$$
* @since 1.42.0
*/
private static $instance = null;

/**
* Allows for accessing single instance of class.
*
* @since $$next-version$$
* @since 1.42.0
* @return self Main instance.
*/
public static function instance() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* Handles functionality related to the Promoted Jobs Status Update.
*
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Promoted_Jobs_Status_Handler {

Expand Down Expand Up @@ -42,7 +42,7 @@ public function __construct() {}
/**
* Initialize the status handler, sets up the cron job and hooks for fetching updates.
*
* @since $$next-version$$
* @since 1.42.0
*/
public function init() {
add_action( self::CRON_HOOK, [ $this, 'fetch_updates' ] );
Expand Down
6 changes: 3 additions & 3 deletions includes/promoted-jobs/class-wp-job-manager-promoted-jobs.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
/**
* Handles promoted jobs functionality.
*
* @since $$next-version$$
* @since 1.42.0
*/
class WP_Job_Manager_Promoted_Jobs {

/**
* The single instance of the class.
*
* @var self
* @since $$next-version$$
* @since 1.42.0
*/
private static $instance = null;

Expand Down Expand Up @@ -48,7 +48,7 @@ class WP_Job_Manager_Promoted_Jobs {
/**
* Allows for accessing single instance of class. Class should only be constructed once per call.
*
* @since $$next-version$$
* @since 1.42.0
* @static
* @return self Main instance.
*/
Expand Down
Loading

0 comments on commit 60c87c7

Please sign in to comment.