Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mooxbot authored and github-actions[bot] committed Jul 12, 2024
1 parent d77468f commit 47e8fc9
Show file tree
Hide file tree
Showing 55 changed files with 267 additions and 225 deletions.
2 changes: 1 addition & 1 deletion public/wp/wp-admin/includes/class-wp-screen.php
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public function in_admin($admin = null)
return (bool) $this->in_admin;
}

return $admin === $this->in_admin;
return $admin === $this->in_admin;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions public/wp/wp-admin/includes/class-wp-site-health.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function check_wp_version_check_exists()
return;
}

echo has_filter('wp_version_check', 'wp_version_check') ? 'yes' : 'no';
echo has_filter('wp_version_check', 'wp_version_check') ? 'yes' : 'no';

exit();
}
Expand Down Expand Up @@ -3407,7 +3407,7 @@ public function get_page_cache_headers()
return strtolower($header_value) === 'true';
},
'x-cache-disabled' => static function ($header_value) {
return strtolower($header_value) !== 'on';
return strtolower($header_value) !== 'on';
},
'x-srcache-store-status' => $cache_hit_callback,
'x-srcache-fetch-status' => $cache_hit_callback,
Expand Down
3 changes: 2 additions & 1 deletion public/wp/wp-admin/includes/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,8 @@ function move_dir($from, $to, $overwrite = false)
* null if the filesystem method class file does not exist.
*/
function WP_Filesystem($args = false, $context = false, $allow_relaxed_file_ownership = false) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
{global $wp_filesystem;
{
global $wp_filesystem;

require_once ABSPATH.'wp-admin/includes/class-wp-filesystem-base.php';

Expand Down
14 changes: 7 additions & 7 deletions public/wp/wp-admin/includes/meta-boxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1248,13 +1248,13 @@ function link_target_meta_box($link)
?>
</span></legend>
<p><label for="link_target_blank" class="selectit">
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo isset($link->link_target) && ($link->link_target === '_blank') ? 'checked="checked"' : ''; ?> />
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo isset($link->link_target) && ($link->link_target === '_blank') ? 'checked="checked"' : ''; ?> />
<?php _e('<code>_blank</code> &mdash; new window or tab.'); ?></label></p>
<p><label for="link_target_top" class="selectit">
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo isset($link->link_target) && ($link->link_target === '_top') ? 'checked="checked"' : ''; ?> />
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo isset($link->link_target) && ($link->link_target === '_top') ? 'checked="checked"' : ''; ?> />
<?php _e('<code>_top</code> &mdash; current window or tab, with no frames.'); ?></label></p>
<p><label for="link_target_none" class="selectit">
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo isset($link->link_target) && ($link->link_target === '') ? 'checked="checked"' : ''; ?> />
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo isset($link->link_target) && ($link->link_target === '') ? 'checked="checked"' : ''; ?> />
<?php _e('<code>_none</code> &mdash; same window or tab.'); ?></label></p>
</fieldset>
<p><?php _e('Choose the target frame for your link.'); ?></p>
Expand Down Expand Up @@ -1334,7 +1334,7 @@ function link_xfn_meta_box($link)
<table class="links-table">
<tr>
<th scope="row"><label for="link_rel"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e('rel:'); ?></label></th>
<td><input type="text" name="link_rel" id="link_rel" value="<?php echo isset($link->link_rel) ? esc_attr($link->link_rel) : ''; ?>" /></td>
<td><input type="text" name="link_rel" id="link_rel" value="<?php echo isset($link->link_rel) ? esc_attr($link->link_rel) : ''; ?>" /></td>
</tr>
<tr>
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e('identity'); ?></th>
Expand Down Expand Up @@ -1495,15 +1495,15 @@ function link_advanced_meta_box($link)
<table class="links-table" cellpadding="0">
<tr>
<th scope="row"><label for="link_image"><?php _e('Image Address'); ?></label></th>
<td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo isset($link->link_image) ? esc_attr($link->link_image) : ''; ?>" /></td>
<td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo isset($link->link_image) ? esc_attr($link->link_image) : ''; ?>" /></td>
</tr>
<tr>
<th scope="row"><label for="rss_uri"><?php _e('RSS Address'); ?></label></th>
<td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo isset($link->link_rss) ? esc_attr($link->link_rss) : ''; ?>" /></td>
<td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo isset($link->link_rss) ? esc_attr($link->link_rss) : ''; ?>" /></td>
</tr>
<tr>
<th scope="row"><label for="link_notes"><?php _e('Notes'); ?></label></th>
<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo isset($link->link_notes) ? $link->link_notes : ''; // textarea_escaped?></textarea></td>
<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo isset($link->link_notes) ? $link->link_notes : ''; // textarea_escaped?></textarea></td>
</tr>
<tr>
<th scope="row"><label for="link_rating"><?php _e('Rating'); ?></label></th>
Expand Down
3 changes: 2 additions & 1 deletion public/wp/wp-admin/includes/misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,8 @@ function iis7_add_rewrite_rule($filename, $rewrite_rule)
* @param string $filename
*/
function saveDomDocument($doc, $filename) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
{$config = $doc->saveXML();
{
$config = $doc->saveXML();
$config = preg_replace("/([^\r])\n/", "$1\r\n", $config);

$fp = fopen($filename, 'w');
Expand Down
24 changes: 12 additions & 12 deletions public/wp/wp-admin/includes/nav-menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,23 +582,23 @@ function wp_nav_menu_item_post_type_meta_box($data_object, $box)
?>
<div id="<?php echo esc_attr("posttype-{$post_type_name}"); ?>" class="posttypediv">
<ul id="<?php echo esc_attr("posttype-{$post_type_name}-tabs"); ?>" class="posttype-tabs add-menu-item-tabs">
<li <?php echo $current_tab === 'most-recent' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'most-recent' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-most-recent"); ?>"
href="<?php echo esc_url($most_recent_url."#tabs-panel-posttype-{$post_type_name}-most-recent"); ?>"
>
<?php _e('Most Recent'); ?>
</a>
</li>
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("{$post_type_name}-all"); ?>"
href="<?php echo esc_url($view_all_url."#{$post_type_name}-all"); ?>"
>
<?php _e('View All'); ?>
</a>
</li>
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-search"); ?>"
href="<?php echo esc_url($search_url."#tabs-panel-posttype-{$post_type_name}-search"); ?>"
Expand All @@ -609,7 +609,7 @@ function wp_nav_menu_item_post_type_meta_box($data_object, $box)
</ul><!-- .posttype-tabs -->

<div id="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-most-recent"); ?>"
class="tabs-panel <?php echo $current_tab === 'most-recent' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel <?php echo $current_tab === 'most-recent' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php esc_attr_e('Most Recent'); ?>" tabindex="0"
>
<ul id="<?php echo esc_attr("{$post_type_name}checklist-most-recent"); ?>"
Expand Down Expand Up @@ -665,7 +665,7 @@ class="categorychecklist form-no-clear"
</div><!-- /.tabs-panel -->

<div id="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-search"); ?>"
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php echo esc_attr($post_type->labels->search_items); ?>" tabindex="0"
>
<?php
Expand Down Expand Up @@ -730,7 +730,7 @@ class="categorychecklist form-no-clear"
</div><!-- /.tabs-panel -->

<div id="<?php echo esc_attr("{$post_type_name}-all"); ?>"
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php echo esc_attr($post_type->labels->all_items); ?>" tabindex="0"
>
<?php if (! empty($page_links)) { ?>
Expand Down Expand Up @@ -955,23 +955,23 @@ function wp_nav_menu_item_taxonomy_meta_box($data_object, $box)
?>
<div id="<?php echo esc_attr("taxonomy-{$taxonomy_name}"); ?>" class="taxonomydiv">
<ul id="<?php echo esc_attr("taxonomy-{$taxonomy_name}-tabs"); ?>" class="taxonomy-tabs add-menu-item-tabs">
<li <?php echo $current_tab === 'most-used' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'most-used' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-pop"); ?>"
href="<?php echo esc_url($most_used_url."#tabs-panel-{$taxonomy_name}-pop"); ?>"
>
<?php echo esc_html($taxonomy->labels->most_used); ?>
</a>
</li>
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-all"); ?>"
href="<?php echo esc_url($view_all_url."#tabs-panel-{$taxonomy_name}-all"); ?>"
>
<?php _e('View All'); ?>
</a>
</li>
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
<a class="nav-tab-link"
data-type="<?php echo esc_attr("tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
href="<?php echo esc_url($search_url."#tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
Expand All @@ -982,7 +982,7 @@ function wp_nav_menu_item_taxonomy_meta_box($data_object, $box)
</ul><!-- .taxonomy-tabs -->

<div id="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-pop"); ?>"
class="tabs-panel <?php echo $current_tab === 'most-used' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel <?php echo $current_tab === 'most-used' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php echo esc_attr($taxonomy->labels->most_used); ?>" tabindex="0"
>
<ul id="<?php echo esc_attr("{$taxonomy_name}checklist-pop"); ?>"
Expand Down Expand Up @@ -1010,7 +1010,7 @@ class="categorychecklist form-no-clear"
</div><!-- /.tabs-panel -->

<div id="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-all"); ?>"
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php echo esc_attr($taxonomy->labels->all_items); ?>" tabindex="0"
>
<?php if (! empty($page_links)) { ?>
Expand Down Expand Up @@ -1041,7 +1041,7 @@ class="categorychecklist form-no-clear"
</div><!-- /.tabs-panel -->

<div id="<?php echo esc_attr("tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
role="region" aria-label="<?php echo esc_attr($taxonomy->labels->search_items); ?>" tabindex="0">
<?php
if (isset($_REQUEST["quick-search-taxonomy-{$taxonomy_name}"])) {
Expand Down
16 changes: 8 additions & 8 deletions public/wp/wp-admin/includes/network.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,14 +562,14 @@ function network_step2($errors = false)
</textarea>
<?php
$keys_salts = [
'AUTH_KEY' => '',
'SECURE_AUTH_KEY' => '',
'LOGGED_IN_KEY' => '',
'NONCE_KEY' => '',
'AUTH_SALT' => '',
'SECURE_AUTH_SALT' => '',
'LOGGED_IN_SALT' => '',
'NONCE_SALT' => '',
'AUTH_KEY' => '',
'SECURE_AUTH_KEY' => '',
'LOGGED_IN_KEY' => '',
'NONCE_KEY' => '',
'AUTH_SALT' => '',
'SECURE_AUTH_SALT' => '',
'LOGGED_IN_SALT' => '',
'NONCE_SALT' => '',
];
foreach ($keys_salts as $c => $v) {
if (defined($c)) {
Expand Down
24 changes: 12 additions & 12 deletions public/wp/wp-admin/includes/plugin-install.php
Original file line number Diff line number Diff line change
Expand Up @@ -705,18 +705,18 @@ function install_plugin_information()
<?php } if (isset($api->active_installs)) { ?>
<li><strong><?php _e('Active Installations:'); ?></strong>
<?php
if ($api->active_installs >= 1000000) {
$active_installs_millions = floor($api->active_installs / 1000000);
printf(
/* translators: %s: Number of millions. */
_nx('%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations'),
number_format_i18n($active_installs_millions)
);
} elseif ($api->active_installs < 10) {
_ex('Less Than 10', 'Active plugin installations');
} else {
echo number_format_i18n($api->active_installs).'+';
}
if ($api->active_installs >= 1000000) {
$active_installs_millions = floor($api->active_installs / 1000000);
printf(
/* translators: %s: Number of millions. */
_nx('%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations'),
number_format_i18n($active_installs_millions)
);
} elseif ($api->active_installs < 10) {
_ex('Less Than 10', 'Active plugin installations');
} else {
echo number_format_i18n($api->active_installs).'+';
}
?>
</li>
<?php } if (! empty($api->slug) && empty($api->external)) { ?>
Expand Down
6 changes: 4 additions & 2 deletions public/wp/wp-admin/includes/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2829,7 +2829,8 @@ function get_alloptions_110()
* @return mixed
*/
function __get_option($setting) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionDoubleUnderscore,PHPCompatibility.FunctionNameRestrictions.ReservedFunctionNames.FunctionDoubleUnderscore
{global $wpdb;
{
global $wpdb;

if ($setting === 'home' && defined('WP_HOME')) {
return untrailingslashit(WP_HOME);
Expand Down Expand Up @@ -2901,7 +2902,8 @@ function deslash($content)
* @return array Strings containing the results of the various update queries.
*/
function dbDelta($queries = '', $execute = true) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
{global $wpdb;
{
global $wpdb;

if (in_array($queries, ['', 'all', 'blog', 'global', 'ms_global'], true)) {
$queries = wp_get_db_schema($queries);
Expand Down
3 changes: 2 additions & 1 deletion public/wp/wp-admin/link-parse-opml.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
* @param array $attrs XML element attributes.
*/
function startElement($parser, $tag_name, $attrs) // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
{global $names, $urls, $targets, $descriptions, $feeds;
{
global $names, $urls, $targets, $descriptions, $feeds;

if ($tag_name === 'OUTLINE') {
$name = '';
Expand Down
46 changes: 23 additions & 23 deletions public/wp/wp-admin/nav-menus.php
Original file line number Diff line number Diff line change
Expand Up @@ -897,16 +897,16 @@ function wp_nav_menu_max_depth($classes)
<span class="locations-add-menu-link">
<a href="
<?php
echo esc_url(
add_query_arg(
[
'action' => 'edit',
'menu' => 0,
'use-location' => $_location,
],
admin_url('nav-menus.php')
)
);
echo esc_url(
add_query_arg(
[
'action' => 'edit',
'menu' => 0,
'use-location' => $_location,
],
admin_url('nav-menus.php')
)
);
?>
">
<?php _ex('Use new menu', 'menu'); ?>
Expand Down Expand Up @@ -946,19 +946,19 @@ function wp_nav_menu_max_depth($classes)
<?php } elseif ($menu_count < 2) { ?>
<span class="add-edit-menu-action">
<?php
printf(
/* translators: %s: URL to create a new menu. */
__('Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!'),
esc_url(
add_query_arg(
[
'action' => 'edit',
'menu' => 0,
],
admin_url('nav-menus.php')
)
)
);
printf(
/* translators: %s: URL to create a new menu. */
__('Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!'),
esc_url(
add_query_arg(
[
'action' => 'edit',
'menu' => 0,
],
admin_url('nav-menus.php')
)
)
);
?>
<span class="screen-reader-text">
<?php
Expand Down
4 changes: 2 additions & 2 deletions public/wp/wp-admin/network/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@
do_action('wpmu_upgrade_site', $site_id);
}
echo '</ul>';
?><p><?php _e('If your browser does not start loading the next page automatically, click this link:'); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo $n + 5; ?>"><?php _e('Next Sites'); ?></a></p>
?><p><?php _e('If your browser does not start loading the next page automatically, click this link:'); ?> <a class="button" href="upgrade.php?action=upgrade&amp;n=<?php echo $n + 5; ?>"><?php _e('Next Sites'); ?></a></p>
<script type="text/javascript">
<!--
function nextpage() {
location.href = "upgrade.php?action=upgrade&n=<?php echo $n + 5; ?>";
location.href = "upgrade.php?action=upgrade&n=<?php echo $n + 5; ?>";
}
setTimeout( "nextpage()", 250 );
//-->
Expand Down
Loading

0 comments on commit 47e8fc9

Please sign in to comment.