Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
89c73eb
Administration: Replace some ternaries with null coalescing operator.
Jul 22, 2023
1c8248c
Bootstrap/Load: Replace some ternaries with null coalescing operator.
Jul 22, 2023
f55e7cb
Comments: Replace some ternaries with null coalescing operator.
Jul 22, 2023
7a55035
Customize: Replace some ternaries with null coalescing operator.
Jul 22, 2023
1156840
Editor: Replace some ternaries with null coalescing operator.
Jul 22, 2023
a02852f
Formatting: Replace some ternaries with null coalescing operator.
Jul 22, 2023
ecc8fcf
Filesystem API: Replace some ternaries with null coalescing operator.
Jul 22, 2023
6e30d28
General: Replace some ternaries with null coalescing operator.
Jul 22, 2023
778318e
HTTP: Replace some ternaries with null coalescing operator.
Jul 22, 2023
7573156
I18N: Replace some ternaries with null coalescing operator.
Jul 22, 2023
9b00d04
Media: Replace some ternaries with null coalescing operator.
Jul 22, 2023
5bcd2f2
Menus: Replace some ternaries with null coalescing operator.
Jul 22, 2023
c76d3a6
Multisite: Replace some ternaries with null coalescing operator.
Jul 22, 2023
b2c918d
Options, Meta APIs: Replace some ternaries with null coalescing opera…
Jul 22, 2023
8b16805
Permalinks: Replace some ternaries with null coalescing operator.
Jul 22, 2023
7c13627
Plugins: Replace some ternaries with null coalescing operator.
Jul 22, 2023
6927237
Posts, Post Types: Replace some ternaries with null coalescing operator.
Jul 22, 2023
8d3c6f8
Query: Replace some ternaries with null coalescing operator.
Jul 22, 2023
f310c89
REST API: Replace some ternaries with null coalescing operator.
Jul 22, 2023
abf3225
Script Loader: Replace some ternaries with null coalescing operator.
Jul 22, 2023
21d0684
Site Health: Replace some ternaries with null coalescing operator.
Jul 22, 2023
cbfbb44
Taxonomy: Replace some ternaries with null coalescing operator.
Jul 22, 2023
b9cac63
Template: Replace some ternaries with null coalescing operator.
Jul 22, 2023
8b47983
Themes: Replace some ternaries with null coalescing operator.
Jul 22, 2023
9bceb7f
Upgrade/Install: Replace some ternaries with null coalescing operator.
Jul 22, 2023
f7047cf
Users: Replace some ternaries with null coalescing operator.
Jul 22, 2023
898384e
Widgets: Replace some ternaries with null coalescing operator.
Jul 22, 2023
51984d2
XML-RPC: Replace some ternaries with null coalescing operator.
Jul 22, 2023
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
4 changes: 2 additions & 2 deletions src/wp-admin/edit-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@
}

if ( $spammed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
$ids = $_REQUEST['ids'] ?? 0;

$messages[] = sprintf(
/* translators: %s: Number of comments. */
Expand All @@ -353,7 +353,7 @@
}

if ( $trashed > 0 ) {
$ids = isset( $_REQUEST['ids'] ) ? $_REQUEST['ids'] : 0;
$ids = $_REQUEST['ids'] ?? 0;

$messages[] = sprintf(
/* translators: %s: Number of comments. */
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/edit-form-advanced.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
*/
$post_ID = isset( $post_ID ) ? (int) $post_ID : 0;
$user_ID = isset( $user_ID ) ? (int) $user_ID : 0;
$action = isset( $action ) ? $action : '';
$action = $action ?? '';

if ( (int) get_option( 'page_for_posts' ) === $post->ID && empty( $post->post_content ) ) {
add_action( 'edit_form_after_title', '_wp_posts_page_notice' );
Expand Down
28 changes: 14 additions & 14 deletions src/wp-admin/includes/ajax-actions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1790,7 +1790,7 @@ function wp_ajax_closed_postboxes() {
$hidden = isset( $_POST['hidden'] ) ? explode( ',', $_POST['hidden'] ) : array();
$hidden = array_filter( $hidden );

$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
$page = $_POST['page'] ?? '';

if ( sanitize_key( $page ) != $page ) {
wp_die( 0 );
Expand Down Expand Up @@ -1821,7 +1821,7 @@ function wp_ajax_closed_postboxes() {
*/
function wp_ajax_hidden_columns() {
check_ajax_referer( 'screen-options-nonce', 'screenoptionnonce' );
$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
$page = $_POST['page'] ?? '';

if ( sanitize_key( $page ) != $page ) {
wp_die( 0 );
Expand Down Expand Up @@ -1970,13 +1970,13 @@ function wp_ajax_menu_locations_save() {
function wp_ajax_meta_box_order() {
check_ajax_referer( 'meta-box-order' );
$order = isset( $_POST['order'] ) ? (array) $_POST['order'] : false;
$page_columns = isset( $_POST['page_columns'] ) ? $_POST['page_columns'] : 'auto';
$page_columns = $_POST['page_columns'] ?? 'auto';

if ( 'auto' !== $page_columns ) {
$page_columns = (int) $page_columns;
}

$page = isset( $_POST['page'] ) ? $_POST['page'] : '';
$page = $_POST['page'] ?? '';

if ( sanitize_key( $page ) != $page ) {
wp_die( 0 );
Expand Down Expand Up @@ -2034,8 +2034,8 @@ function wp_ajax_get_permalink() {
function wp_ajax_sample_permalink() {
check_ajax_referer( 'samplepermalink', 'samplepermalinknonce' );
$post_id = isset( $_POST['post_id'] ) ? (int) $_POST['post_id'] : 0;
$title = isset( $_POST['new_title'] ) ? $_POST['new_title'] : '';
$slug = isset( $_POST['new_slug'] ) ? $_POST['new_slug'] : null;
$title = $_POST['new_title'] ?? '';
$slug = $_POST['new_slug'] ?? null;
wp_die( get_sample_permalink_html( $post_id, $title, $slug ) );
}

Expand Down Expand Up @@ -2374,7 +2374,7 @@ function wp_ajax_save_widget() {
$error = '<p>' . __( 'An error has occurred. Please reload the page and try again.' ) . '</p>';

$sidebars = wp_get_sidebars_widgets();
$sidebar = isset( $sidebars[ $sidebar_id ] ) ? $sidebars[ $sidebar_id ] : array();
$sidebar = $sidebars[ $sidebar_id ] ?? array();

// Delete.
if ( isset( $_POST['delete_widget'] ) && $_POST['delete_widget'] ) {
Expand Down Expand Up @@ -3334,12 +3334,12 @@ function wp_ajax_send_attachment_to_editor() {
remove_filter( 'media_send_to_editor', 'image_media_send_to_editor' );

if ( str_starts_with( $post->post_mime_type, 'image' ) ) {
$align = isset( $attachment['align'] ) ? $attachment['align'] : 'none';
$size = isset( $attachment['image-size'] ) ? $attachment['image-size'] : 'medium';
$alt = isset( $attachment['image_alt'] ) ? $attachment['image_alt'] : '';
$align = $attachment['align'] ?? 'none';
$size = $attachment['image-size'] ?? 'medium';
$alt = $attachment['image_alt'] ?? '';

// No whitespace-only captions.
$caption = isset( $attachment['post_excerpt'] ) ? $attachment['post_excerpt'] : '';
$caption = $attachment['post_excerpt'] ?? '';
if ( '' === trim( $caption ) ) {
$caption = '';
}
Expand All @@ -3349,7 +3349,7 @@ function wp_ajax_send_attachment_to_editor() {
} elseif ( wp_attachment_is( 'video', $post ) || wp_attachment_is( 'audio', $post ) ) {
$html = stripslashes_deep( $_POST['html'] );
} else {
$html = isset( $attachment['post_title'] ) ? $attachment['post_title'] : '';
$html = $attachment['post_title'] ?? '';
$rel = $rel ? ' rel="attachment wp-att-' . $id . '"' : ''; // Hard-coded string, $id is already sanitized.

if ( ! empty( $url ) ) {
Expand Down Expand Up @@ -3402,7 +3402,7 @@ function wp_ajax_send_link_to_editor() {
$link_text = wp_basename( $src );
}

$post = get_post( isset( $_POST['post_id'] ) ? $_POST['post_id'] : 0 );
$post = get_post( $_POST['post_id'] ?? 0 );

// Ping WordPress for an embed.
$check_embed = $wp_embed->run_shortcode( '[embed]' . $src . '[/embed]' );
Expand Down Expand Up @@ -3627,7 +3627,7 @@ function wp_ajax_query_themes() {
}
}

$old_filter = isset( $args['browse'] ) ? $args['browse'] : 'search';
$old_filter = $args['browse'] ?? 'search';

/** This filter is documented in wp-admin/includes/class-wp-theme-install-list-table.php */
$args = apply_filters( 'install_themes_table_api_args_' . $old_filter, $args );
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-core-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public static function should_update_to_version( $offered_ver ) {
public function check_files() {
global $wp_version, $wp_local_package;

$checksums = get_core_checksums( $wp_version, isset( $wp_local_package ) ? $wp_local_package : 'en_US' );
$checksums = get_core_checksums( $wp_version, $wp_local_package ?? 'en_US' );

if ( ! is_array( $checksums ) ) {
return false;
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-custom-image-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ final public function create_attachment_object( $cropped, $parent_attachment_id
* @return int Attachment ID.
*/
final public function insert_attachment( $attachment, $cropped ) {
$parent_id = isset( $attachment['post_parent'] ) ? $attachment['post_parent'] : null;
$parent_id = $attachment['post_parent'] ?? null;
unset( $attachment['post_parent'] );

$attachment_id = wp_insert_attachment( $attachment, $cropped );
Expand Down Expand Up @@ -1571,8 +1571,8 @@ public function get_uploaded_header_images() {

foreach ( $header_images as &$header_image ) {
$header_meta = get_post_meta( $header_image['attachment_id'] );
$header_image['timestamp'] = isset( $header_meta[ $timestamp_key ] ) ? $header_meta[ $timestamp_key ] : '';
$header_image['alt_text'] = isset( $header_meta[ $alt_text_key ] ) ? $header_meta[ $alt_text_key ] : '';
$header_image['timestamp'] = $header_meta[ $timestamp_key ] ?? '';
$header_image['alt_text'] = $header_meta[ $alt_text_key ] ?? '';
}

return $header_images;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-language-pack-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public function bulk_upgrade( $language_updates = array(), $args = array() ) {
$language_updates_results[] = array(
'language' => $language_update->language,
'type' => $language_update->type,
'slug' => isset( $language_update->slug ) ? $language_update->slug : 'default',
'slug' => $language_update->slug ?? 'default',
'version' => $language_update->version,
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-plugin-installer-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct( $args = array() ) {

$this->type = $args['type'];
$this->url = $args['url'];
$this->api = isset( $args['api'] ) ? $args['api'] : array();
$this->api = $args['api'] ?? array();
$this->overwrite = $args['overwrite'];

parent::__construct( $args );
Expand Down Expand Up @@ -259,8 +259,8 @@ private function do_overwrite() {
$blocked_message = '<p>' . esc_html__( 'The plugin cannot be updated due to the following:' ) . '</p>';
$blocked_message .= '<ul class="ul-disc">';

$requires_php = isset( $new_plugin_data['RequiresPHP'] ) ? $new_plugin_data['RequiresPHP'] : null;
$requires_wp = isset( $new_plugin_data['RequiresWP'] ) ? $new_plugin_data['RequiresWP'] : null;
$requires_php = $new_plugin_data['RequiresPHP'] ?? null;
$requires_wp = $new_plugin_data['RequiresWP'] ?? null;

if ( ! is_php_version_compatible( $requires_php ) ) {
$error = sprintf(
Expand Down
12 changes: 6 additions & 6 deletions src/wp-admin/includes/class-plugin-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,8 +456,8 @@ public function check_package( $source ) {
return new WP_Error( 'incompatible_archive_no_plugins', $this->strings['incompatible_archive'], __( 'No valid plugins were found.' ) );
}

$requires_php = isset( $info['RequiresPHP'] ) ? $info['RequiresPHP'] : null;
$requires_wp = isset( $info['RequiresWP'] ) ? $info['RequiresWP'] : null;
$requires_php = $info['RequiresPHP'] ?? null;
$requires_wp = $info['RequiresWP'] ?? null;

if ( ! is_php_version_compatible( $requires_php ) ) {
$error = sprintf(
Expand Down Expand Up @@ -536,7 +536,7 @@ public function deactivate_plugin_before_upgrade( $response, $plugin ) {
return $response;
}

$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
$plugin = $plugin['plugin'] ?? '';
if ( empty( $plugin ) ) {
return new WP_Error( 'bad_request', $this->strings['bad_request'] );
}
Expand Down Expand Up @@ -570,7 +570,7 @@ public function active_before( $response, $plugin ) {
return $response;
}

$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
$plugin = $plugin['plugin'] ?? '';

// Only run if plugin is active.
if ( ! is_plugin_active( $plugin ) ) {
Expand Down Expand Up @@ -606,7 +606,7 @@ public function active_after( $response, $plugin ) {
return $response;
}

$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
$plugin = $plugin['plugin'] ?? '';

// Only run if plugin is active.
if ( ! is_plugin_active( $plugin ) ) {
Expand Down Expand Up @@ -645,7 +645,7 @@ public function delete_old_plugin( $removed, $local_destination, $remote_destina
return $removed; // Pass errors through.
}

$plugin = isset( $plugin['plugin'] ) ? $plugin['plugin'] : '';
$plugin = $plugin['plugin'] ?? '';
if ( empty( $plugin ) ) {
return new WP_Error( 'bad_request', $this->strings['bad_request'] );
}
Expand Down
6 changes: 3 additions & 3 deletions src/wp-admin/includes/class-theme-installer-skin.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct( $args = array() ) {

$this->type = $args['type'];
$this->url = $args['url'];
$this->api = isset( $args['api'] ) ? $args['api'] : array();
$this->api = $args['api'] ?? array();
$this->overwrite = $args['overwrite'];

parent::__construct( $args );
Expand Down Expand Up @@ -294,8 +294,8 @@ private function do_overwrite() {
$blocked_message = '<p>' . esc_html__( 'The theme cannot be updated due to the following:' ) . '</p>';
$blocked_message .= '<ul class="ul-disc">';

$requires_php = isset( $new_theme_data['RequiresPHP'] ) ? $new_theme_data['RequiresPHP'] : null;
$requires_wp = isset( $new_theme_data['RequiresWP'] ) ? $new_theme_data['RequiresWP'] : null;
$requires_php = $new_theme_data['RequiresPHP'] ?? null;
$requires_wp = $new_theme_data['RequiresWP'] ?? null;

if ( ! is_php_version_compatible( $requires_php ) ) {
$error = sprintf(
Expand Down
8 changes: 4 additions & 4 deletions src/wp-admin/includes/class-theme-upgrader.php
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,8 @@ public function check_package( $source ) {
);
}

$requires_php = isset( $info['RequiresPHP'] ) ? $info['RequiresPHP'] : null;
$requires_wp = isset( $info['RequiresWP'] ) ? $info['RequiresWP'] : null;
$requires_php = $info['RequiresPHP'] ?? null;
$requires_wp = $info['RequiresWP'] ?? null;

if ( ! is_php_version_compatible( $requires_php ) ) {
$error = sprintf(
Expand Down Expand Up @@ -652,7 +652,7 @@ public function current_before( $response, $theme ) {
return $response;
}

$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
$theme = $theme['theme'] ?? '';

// Only run if active theme.
if ( get_stylesheet() !== $theme ) {
Expand Down Expand Up @@ -684,7 +684,7 @@ public function current_after( $response, $theme ) {
return $response;
}

$theme = isset( $theme['theme'] ) ? $theme['theme'] : '';
$theme = $theme['theme'] ?? '';

// Only run if active theme.
if ( get_stylesheet() !== $theme ) {
Expand Down
14 changes: 7 additions & 7 deletions src/wp-admin/includes/class-wp-comments-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function __construct( $args = array() ) {
'plural' => 'comments',
'singular' => 'comment',
'ajax' => true,
'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
'screen' => $args['screen'] ?? null,
)
);
}
Expand Down Expand Up @@ -93,22 +93,22 @@ public function prepare_items() {
$mode = get_user_setting( 'posts_list_mode', 'list' );
}

$comment_status = isset( $_REQUEST['comment_status'] ) ? $_REQUEST['comment_status'] : 'all';
$comment_status = $_REQUEST['comment_status'] ?? 'all';

if ( ! in_array( $comment_status, array( 'all', 'mine', 'moderated', 'approved', 'spam', 'trash' ), true ) ) {
$comment_status = 'all';
}

$comment_type = ! empty( $_REQUEST['comment_type'] ) ? $_REQUEST['comment_type'] : '';

$search = ( isset( $_REQUEST['s'] ) ) ? $_REQUEST['s'] : '';
$search = $_REQUEST['s'] ?? '';

$post_type = ( isset( $_REQUEST['post_type'] ) ) ? sanitize_key( $_REQUEST['post_type'] ) : '';

$user_id = ( isset( $_REQUEST['user_id'] ) ) ? $_REQUEST['user_id'] : '';
$user_id = $_REQUEST['user_id'] ?? '';

$orderby = ( isset( $_REQUEST['orderby'] ) ) ? $_REQUEST['orderby'] : '';
$order = ( isset( $_REQUEST['order'] ) ) ? $_REQUEST['order'] : '';
$orderby = $_REQUEST['orderby'] ?? '';
$order = $_REQUEST['order'] ?? '';

$comments_per_page = $this->get_per_page( $comment_status );

Expand Down Expand Up @@ -140,7 +140,7 @@ public function prepare_items() {
);

$args = array(
'status' => isset( $status_map[ $comment_status ] ) ? $status_map[ $comment_status ] : $comment_status,
'status' => $status_map[ $comment_status ] ?? $comment_status,
'search' => $search,
'user_id' => $user_id,
'offset' => $start,
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-community-events.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function get_events( $location_search = '', $timezone = '' ) {
} elseif ( ! isset( $response_body['location'], $response_body['events'] ) ) {
$response_error = new WP_Error(
'api-invalid-response',
isset( $response_body['error'] ) ? $response_body['error'] : __( 'Unknown API error.' )
$response_body['error'] ?? __( 'Unknown API error.' )
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/wp-admin/includes/class-wp-debug-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -713,8 +713,8 @@ public static function debug_data() {
);
$info['wp-server']['fields']['httpd_software'] = array(
'label' => __( 'Web server' ),
'value' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : __( 'Unable to determine what web server software is used' ) ),
'debug' => ( isset( $_SERVER['SERVER_SOFTWARE'] ) ? $_SERVER['SERVER_SOFTWARE'] : 'unknown' ),
'value' => $_SERVER['SERVER_SOFTWARE'] ?? __( 'Unable to determine what web server software is used' ),
'debug' => $_SERVER['SERVER_SOFTWARE'] ?? 'unknown',
);
$info['wp-server']['fields']['php_version'] = array(
'label' => __( 'PHP version' ),
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-links-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct( $args = array() ) {
parent::__construct(
array(
'plural' => 'bookmarks',
'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
'screen' => $args['screen'] ?? null,
)
);
}
Expand Down
20 changes: 10 additions & 10 deletions src/wp-admin/includes/class-wp-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1401,11 +1401,11 @@ public function print_column_headers( $with_id = true ) {
}

if ( isset( $sortable[ $column_key ] ) ) {
$orderby = isset( $sortable[ $column_key ][0] ) ? $sortable[ $column_key ][0] : '';
$desc_first = isset( $sortable[ $column_key ][1] ) ? $sortable[ $column_key ][1] : false;
$abbr = isset( $sortable[ $column_key ][2] ) ? $sortable[ $column_key ][2] : '';
$orderby_text = isset( $sortable[ $column_key ][3] ) ? $sortable[ $column_key ][3] : '';
$initial_order = isset( $sortable[ $column_key ][4] ) ? $sortable[ $column_key ][4] : '';
$orderby = $sortable[ $column_key ][0] ?? '';
$desc_first = $sortable[ $column_key ][1] ?? false;
$abbr = $sortable[ $column_key ][2] ?? '';
$orderby_text = $sortable[ $column_key ][3] ?? '';
$initial_order = $sortable[ $column_key ][4] ?? '';

/*
* We're in the initial view and there's no $_GET['orderby'] then check if the
Expand Down Expand Up @@ -1521,11 +1521,11 @@ public function print_table_description() {
foreach ( array_keys( $columns ) as $column_key ) {

if ( isset( $sortable[ $column_key ] ) ) {
$orderby = isset( $sortable[ $column_key ][0] ) ? $sortable[ $column_key ][0] : '';
$desc_first = isset( $sortable[ $column_key ][1] ) ? $sortable[ $column_key ][1] : false;
$abbr = isset( $sortable[ $column_key ][2] ) ? $sortable[ $column_key ][2] : '';
$orderby_text = isset( $sortable[ $column_key ][3] ) ? $sortable[ $column_key ][3] : '';
$initial_order = isset( $sortable[ $column_key ][4] ) ? $sortable[ $column_key ][4] : '';
$orderby = $sortable[ $column_key ][0] ?? '';
$desc_first = $sortable[ $column_key ][1] ?? false;
$abbr = $sortable[ $column_key ][2] ?? '';
$orderby_text = $sortable[ $column_key ][3] ?? '';
$initial_order = $sortable[ $column_key ][4] ?? '';

if ( ! is_string( $orderby_text ) || '' === $orderby_text ) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/includes/class-wp-media-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function __construct( $args = array() ) {
parent::__construct(
array(
'plural' => 'media',
'screen' => isset( $args['screen'] ) ? $args['screen'] : null,
'screen' => $args['screen'] ?? null,
)
);
}
Expand Down
Loading