Skip to content

Commit

Permalink
Merge pull request #2619 from Automattic/fix/php-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gikaragia committed Oct 16, 2023
2 parents 3cd8dc9 + 026cf29 commit b3e2d01
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/admin/class-wp-job-manager-cpt.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,8 @@ public function row_actions( $actions, $post ) {
unset( $actions['inline hide-if-no-js'] );
unset( $actions['trash'] );

$admin_actions = [];

if ( in_array( $post->post_status, [ 'pending', 'pending_payment' ], true ) && current_user_can( 'publish_post', $post->ID ) ) {
$admin_actions['approve'] = [
'action' => 'approved',
Expand Down

0 comments on commit b3e2d01

Please sign in to comment.