From 64412aedb121d32a176a9978b3a49f2b59b5b7d4 Mon Sep 17 00:00:00 2001 From: Mikey Arce Date: Mon, 26 Feb 2024 11:03:10 -0800 Subject: [PATCH] Add filter to allow duplication on more post statuses (#2780) --- includes/class-wp-job-manager-shortcodes.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/includes/class-wp-job-manager-shortcodes.php b/includes/class-wp-job-manager-shortcodes.php index a2eef4b79..9fd4ebf65 100644 --- a/includes/class-wp-job-manager-shortcodes.php +++ b/includes/class-wp-job-manager-shortcodes.php @@ -477,11 +477,6 @@ public function get_job_actions( $job ) { 'nonce' => $base_nonce_action_name, ]; } - - $actions['duplicate'] = [ - 'label' => __( 'Duplicate', 'wp-job-manager' ), - 'nonce' => $base_nonce_action_name, - ]; break; case 'expired': if ( job_manager_get_permalink( 'submit_job_form' ) ) { @@ -509,7 +504,11 @@ public function get_job_actions( $job ) { break; } - $actions['delete'] = [ + $actions['duplicate'] = [ + 'label' => __( 'Duplicate', 'wp-job-manager' ), + 'nonce' => $base_nonce_action_name, + ]; + $actions['delete'] = [ 'label' => __( 'Delete', 'wp-job-manager' ), 'nonce' => $base_nonce_action_name, ];