Skip to content

Commit

Permalink
phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
timiwahalahti authored and renintw committed May 1, 2024
1 parent bc259e4 commit 84b4b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ function send_favourite_sessions_email( WP_REST_Request $request ) {
// Page by slug existance validated in REST API.
$pages = get_posts( array(
'name' => $page_slug,
'post_type' => 'page',
'post_type' => 'page',
'post_status' => 'publish',
'fields' => 'ids',
) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ function register_fav_sessions_email() {
'validate_callback' => function( $value, $request, $param ) {
$pages = get_posts( array(
'name' => $value,
'post_type' => 'page',
'post_type' => 'page',
'post_status' => 'publish',
'fields' => 'ids',
) );
Expand Down

0 comments on commit 84b4b1f

Please sign in to comment.