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.0.0 #2640

Merged
merged 2 commits into from
Nov 17, 2023
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
24 changes: 12 additions & 12 deletions includes/admin/class-wp-job-manager-addons-landing-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* File WP_Job_Manager_Addons_Landing_Page class.
*
* @package wp-job-manager
* @since $$next-version$$
* @since 2.0.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand All @@ -13,22 +13,22 @@
/**
* Landing pages for Applications and Resumes add-ons.
*
* @since $$next-version$$
* @since 2.0.0
*/
class WP_Job_Manager_Addons_Landing_Page {

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

/**
* Singleton accessor.
*
* @since $$next-version$$
* @since 2.0.0
* @static
* @return self Main instance.
*/
Expand All @@ -43,7 +43,7 @@ public static function instance() {
/**
* Initialize class for landing pages.
*
* @since $$next-version$$
* @since 2.0.0
*/
public function __construct() {
add_action( 'admin_menu', [ $this, 'add_applications_menu_item' ], 12 );
Expand All @@ -55,7 +55,7 @@ public function __construct() {
* Register styles for landing pages.
*
* @access private
* @since $$next-version$$
* @since 2.0.0
*/
public function register_styles() {
WP_Job_Manager::register_style( 'job_manager_admin_landing_css', 'css/admin-landing.css', [ 'job_manager_brand' ] );
Expand All @@ -66,7 +66,7 @@ public function register_styles() {
* Add Applications add-on menu item if needed.
*
* @access private
* @since $$next-version$$
* @since 2.0.0
*/
public function add_applications_menu_item() {
$was_addon_installed = (bool) get_option( 'wp_job_manager_applications_version', false );
Expand All @@ -75,7 +75,7 @@ public function add_applications_menu_item() {
/**
* Filters whether the 'Applications' landing page should be added to the Job Manager menu.
*
* @since $$next-version$$
* @since 2.0.0
*
* @param bool $show True if the menu should be added.
*/
Expand All @@ -100,7 +100,7 @@ public function add_applications_menu_item() {
* Add Resumes add-on menu item if needed.
*
* @access private
* @since $$next-version$$
* @since 2.0.0
*/
public function add_resumes_menu_item() {
$was_addon_installed = ! ! get_option( 'wp_resume_manager_version', false );
Expand All @@ -109,7 +109,7 @@ public function add_resumes_menu_item() {
/**
* Filters whether the 'Resumes' landing page should be added to the Job Manager menu.
*
* @since $$next-version$$
* @since 2.0.0
*
* @param bool $show True if the menu should be added.
*/
Expand All @@ -134,7 +134,7 @@ public function add_resumes_menu_item() {
* Render Applications landing page.
*
* @access private
* @since $$next-version$$
* @since 2.0.0
*/
public function applications_landing_page() {

Expand Down Expand Up @@ -217,7 +217,7 @@ public function applications_landing_page() {
* Render Resume Manager landing page.
*
* @access private
* @since $$next-version$$
* @since 2.0.0
*/
public function resumes_landing_page() {

Expand Down
10 changes: 5 additions & 5 deletions includes/admin/class-wp-job-manager-admin-notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ public static function has_notice( $notice ) {
/**
* Set up filters for core admin notices.
*
* @deprecated since $$next-version$$. See maybe_add_core_setup_notice
* @deprecated since 2.0.0. See maybe_add_core_setup_notice
*
* Note: For internal use only. Do not call manually.
*/
public static function init_core_notices() {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager_Admin_Notices::maybe_add_core_setup_notice' );
_deprecated_function( __METHOD__, '2.0.0', 'WP_Job_Manager_Admin_Notices::maybe_add_core_setup_notice' );
}

/**
Expand Down Expand Up @@ -386,7 +386,7 @@ public static function handle_notice_dismiss() {
*/
public static function is_admin_on_standard_job_manager_screen( $additional_screens = [] ) {

_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager\Admin\Notices_Conditions_Checker::check' );
_deprecated_function( __METHOD__, '2.0.0', 'WP_Job_Manager\Admin\Notices_Conditions_Checker::check' );

$screen = get_current_screen();
$screen_id = $screen ? $screen->id : '';
Expand Down Expand Up @@ -415,12 +415,12 @@ public static function is_admin_on_standard_job_manager_screen( $additional_scre
/**
* Displays the setup wizard notice when WPJM is first activated.
*
* @deprecated since $$next-version$$. See maybe_add_core_setup_notice
* @deprecated since 2.0.0. See maybe_add_core_setup_notice
*
* Note: For internal use only. Do not call manually.
*/
public static function display_core_setup() {
_deprecated_function( __METHOD__, '$$next-version$$', 'WP_Job_Manager_Admin_Notices::maybe_add_core_setup_notice' );
_deprecated_function( __METHOD__, '2.0.0', 'WP_Job_Manager_Admin_Notices::maybe_add_core_setup_notice' );
}

/**
Expand Down
Loading
Loading