Skip to content

Commit 89f06c7

Browse files
mooxbotgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 5850c59 commit 89f06c7

36 files changed

+123
-124
lines changed

public/wp/wp-admin/includes/class-pclzip.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ public function __construct($p_zipname)
227227
$this->magic_quotes_status = -1;
228228

229229
// ----- Return
230-
231230
}
232231

233232
public function PclZip($p_zipname)

public/wp/wp-admin/includes/class-wp-screen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ public function in_admin($admin = null)
465465
return (bool) $this->in_admin;
466466
}
467467

468-
return $admin === $this->in_admin;
468+
return $admin === $this->in_admin;
469469
}
470470

471471
/**

public/wp/wp-admin/includes/class-wp-site-health.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ public function check_wp_version_check_exists()
252252
return;
253253
}
254254

255-
echo has_filter('wp_version_check', 'wp_version_check') ? 'yes' : 'no';
255+
echo has_filter('wp_version_check', 'wp_version_check') ? 'yes' : 'no';
256256

257257
exit();
258258
}
@@ -3400,7 +3400,7 @@ public function get_page_cache_headers()
34003400
return strtolower($header_value) === 'true';
34013401
},
34023402
'x-cache-disabled' => static function ($header_value) {
3403-
return strtolower($header_value) !== 'on';
3403+
return strtolower($header_value) !== 'on';
34043404
},
34053405
'x-srcache-store-status' => $cache_hit_callback,
34063406
'x-srcache-fetch-status' => $cache_hit_callback,

public/wp/wp-admin/includes/meta-boxes.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,13 +1247,13 @@ function link_target_meta_box($link)
12471247
?>
12481248
</span></legend>
12491249
<p><label for="link_target_blank" class="selectit">
1250-
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo isset($link->link_target) && ($link->link_target === '_blank') ? 'checked="checked"' : ''; ?> />
1250+
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo isset($link->link_target) && ($link->link_target === '_blank') ? 'checked="checked"' : ''; ?> />
12511251
<?php _e('<code>_blank</code> &mdash; new window or tab.'); ?></label></p>
12521252
<p><label for="link_target_top" class="selectit">
1253-
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo isset($link->link_target) && ($link->link_target === '_top') ? 'checked="checked"' : ''; ?> />
1253+
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo isset($link->link_target) && ($link->link_target === '_top') ? 'checked="checked"' : ''; ?> />
12541254
<?php _e('<code>_top</code> &mdash; current window or tab, with no frames.'); ?></label></p>
12551255
<p><label for="link_target_none" class="selectit">
1256-
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo isset($link->link_target) && ($link->link_target === '') ? 'checked="checked"' : ''; ?> />
1256+
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo isset($link->link_target) && ($link->link_target === '') ? 'checked="checked"' : ''; ?> />
12571257
<?php _e('<code>_none</code> &mdash; same window or tab.'); ?></label></p>
12581258
</fieldset>
12591259
<p><?php _e('Choose the target frame for your link.'); ?></p>
@@ -1333,7 +1333,7 @@ function link_xfn_meta_box($link)
13331333
<table class="links-table">
13341334
<tr>
13351335
<th scope="row"><label for="link_rel"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e('rel:'); ?></label></th>
1336-
<td><input type="text" name="link_rel" id="link_rel" value="<?php echo isset($link->link_rel) ? esc_attr($link->link_rel) : ''; ?>" /></td>
1336+
<td><input type="text" name="link_rel" id="link_rel" value="<?php echo isset($link->link_rel) ? esc_attr($link->link_rel) : ''; ?>" /></td>
13371337
</tr>
13381338
<tr>
13391339
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e('identity'); ?></th>
@@ -1494,15 +1494,15 @@ function link_advanced_meta_box($link)
14941494
<table class="links-table" cellpadding="0">
14951495
<tr>
14961496
<th scope="row"><label for="link_image"><?php _e('Image Address'); ?></label></th>
1497-
<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>
1497+
<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>
14981498
</tr>
14991499
<tr>
15001500
<th scope="row"><label for="rss_uri"><?php _e('RSS Address'); ?></label></th>
1501-
<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>
1501+
<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>
15021502
</tr>
15031503
<tr>
15041504
<th scope="row"><label for="link_notes"><?php _e('Notes'); ?></label></th>
1505-
<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo isset($link->link_notes) ? $link->link_notes : ''; // textarea_escaped?></textarea></td>
1505+
<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo isset($link->link_notes) ? $link->link_notes : ''; // textarea_escaped?></textarea></td>
15061506
</tr>
15071507
<tr>
15081508
<th scope="row"><label for="link_rating"><?php _e('Rating'); ?></label></th>

public/wp/wp-admin/includes/nav-menu.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -582,23 +582,23 @@ function wp_nav_menu_item_post_type_meta_box($data_object, $box)
582582
?>
583583
<div id="<?php echo esc_attr("posttype-{$post_type_name}"); ?>" class="posttypediv">
584584
<ul id="<?php echo esc_attr("posttype-{$post_type_name}-tabs"); ?>" class="posttype-tabs add-menu-item-tabs">
585-
<li <?php echo $current_tab === 'most-recent' ? ' class="tabs"' : ''; ?>>
585+
<li <?php echo $current_tab === 'most-recent' ? ' class="tabs"' : ''; ?>>
586586
<a class="nav-tab-link"
587587
data-type="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-most-recent"); ?>"
588588
href="<?php echo esc_url($most_recent_url."#tabs-panel-posttype-{$post_type_name}-most-recent"); ?>"
589589
>
590590
<?php _e('Most Recent'); ?>
591591
</a>
592592
</li>
593-
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
593+
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
594594
<a class="nav-tab-link"
595595
data-type="<?php echo esc_attr("{$post_type_name}-all"); ?>"
596596
href="<?php echo esc_url($view_all_url."#{$post_type_name}-all"); ?>"
597597
>
598598
<?php _e('View All'); ?>
599599
</a>
600600
</li>
601-
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
601+
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
602602
<a class="nav-tab-link"
603603
data-type="<?php echo esc_attr("tabs-panel-posttype-{$post_type_name}-search"); ?>"
604604
href="<?php echo esc_url($search_url."#tabs-panel-posttype-{$post_type_name}-search"); ?>"
@@ -609,7 +609,7 @@ function wp_nav_menu_item_post_type_meta_box($data_object, $box)
609609
</ul><!-- .posttype-tabs -->
610610

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

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

732732
<div id="<?php echo esc_attr("{$post_type_name}-all"); ?>"
733-
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
733+
class="tabs-panel tabs-panel-view-all <?php echo $current_tab === 'all' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
734734
role="region" aria-label="<?php echo esc_attr($post_type->labels->all_items); ?>" tabindex="0"
735735
>
736736
<?php if (! empty($page_links)) { ?>
@@ -955,23 +955,23 @@ function wp_nav_menu_item_taxonomy_meta_box($data_object, $box)
955955
?>
956956
<div id="<?php echo esc_attr("taxonomy-{$taxonomy_name}"); ?>" class="taxonomydiv">
957957
<ul id="<?php echo esc_attr("taxonomy-{$taxonomy_name}-tabs"); ?>" class="taxonomy-tabs add-menu-item-tabs">
958-
<li <?php echo $current_tab === 'most-used' ? ' class="tabs"' : ''; ?>>
958+
<li <?php echo $current_tab === 'most-used' ? ' class="tabs"' : ''; ?>>
959959
<a class="nav-tab-link"
960960
data-type="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-pop"); ?>"
961961
href="<?php echo esc_url($most_used_url."#tabs-panel-{$taxonomy_name}-pop"); ?>"
962962
>
963963
<?php echo esc_html($taxonomy->labels->most_used); ?>
964964
</a>
965965
</li>
966-
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
966+
<li <?php echo $current_tab === 'all' ? ' class="tabs"' : ''; ?>>
967967
<a class="nav-tab-link"
968968
data-type="<?php echo esc_attr("tabs-panel-{$taxonomy_name}-all"); ?>"
969969
href="<?php echo esc_url($view_all_url."#tabs-panel-{$taxonomy_name}-all"); ?>"
970970
>
971971
<?php _e('View All'); ?>
972972
</a>
973973
</li>
974-
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
974+
<li <?php echo $current_tab === 'search' ? ' class="tabs"' : ''; ?>>
975975
<a class="nav-tab-link"
976976
data-type="<?php echo esc_attr("tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
977977
href="<?php echo esc_url($search_url."#tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
@@ -982,7 +982,7 @@ function wp_nav_menu_item_taxonomy_meta_box($data_object, $box)
982982
</ul><!-- .taxonomy-tabs -->
983983

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

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

10431043
<div id="<?php echo esc_attr("tabs-panel-search-taxonomy-{$taxonomy_name}"); ?>"
1044-
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
1044+
class="tabs-panel <?php echo $current_tab === 'search' ? 'tabs-panel-active' : 'tabs-panel-inactive'; ?>"
10451045
role="region" aria-label="<?php echo esc_attr($taxonomy->labels->search_items); ?>" tabindex="0">
10461046
<?php
10471047
if (isset($_REQUEST["quick-search-taxonomy-{$taxonomy_name}"])) {

public/wp/wp-admin/includes/plugin-install.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -695,18 +695,18 @@ function install_plugin_information()
695695
<?php } if (isset($api->active_installs)) { ?>
696696
<li><strong><?php _e('Active Installations:'); ?></strong>
697697
<?php
698-
if ($api->active_installs >= 1000000) {
699-
$active_installs_millions = floor($api->active_installs / 1000000);
700-
printf(
701-
/* translators: %s: Number of millions. */
702-
_nx('%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations'),
703-
number_format_i18n($active_installs_millions)
704-
);
705-
} elseif ($api->active_installs < 10) {
706-
_ex('Less Than 10', 'Active plugin installations');
707-
} else {
708-
echo number_format_i18n($api->active_installs).'+';
709-
}
698+
if ($api->active_installs >= 1000000) {
699+
$active_installs_millions = floor($api->active_installs / 1000000);
700+
printf(
701+
/* translators: %s: Number of millions. */
702+
_nx('%s+ Million', '%s+ Million', $active_installs_millions, 'Active plugin installations'),
703+
number_format_i18n($active_installs_millions)
704+
);
705+
} elseif ($api->active_installs < 10) {
706+
_ex('Less Than 10', 'Active plugin installations');
707+
} else {
708+
echo number_format_i18n($api->active_installs).'+';
709+
}
710710
?>
711711
</li>
712712
<?php } if (! empty($api->slug) && empty($api->external)) { ?>

public/wp/wp-admin/nav-menus.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -900,16 +900,16 @@ function wp_nav_menu_max_depth($classes)
900900
<span class="locations-add-menu-link">
901901
<a href="
902902
<?php
903-
echo esc_url(
904-
add_query_arg(
905-
[
906-
'action' => 'edit',
907-
'menu' => 0,
908-
'use-location' => $_location,
909-
],
910-
admin_url('nav-menus.php')
911-
)
912-
);
903+
echo esc_url(
904+
add_query_arg(
905+
[
906+
'action' => 'edit',
907+
'menu' => 0,
908+
'use-location' => $_location,
909+
],
910+
admin_url('nav-menus.php')
911+
)
912+
);
913913
?>
914914
">
915915
<?php _ex('Use new menu', 'menu'); ?>
@@ -949,19 +949,19 @@ function wp_nav_menu_max_depth($classes)
949949
<?php } elseif ($menu_count < 2) { ?>
950950
<span class="add-edit-menu-action">
951951
<?php
952-
printf(
953-
/* translators: %s: URL to create a new menu. */
954-
__('Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!'),
955-
esc_url(
956-
add_query_arg(
957-
[
958-
'action' => 'edit',
959-
'menu' => 0,
960-
],
961-
admin_url('nav-menus.php')
962-
)
963-
)
964-
);
952+
printf(
953+
/* translators: %s: URL to create a new menu. */
954+
__('Edit your menu below, or <a href="%s">create a new menu</a>. Do not forget to save your changes!'),
955+
esc_url(
956+
add_query_arg(
957+
[
958+
'action' => 'edit',
959+
'menu' => 0,
960+
],
961+
admin_url('nav-menus.php')
962+
)
963+
)
964+
);
965965
?>
966966
<span class="screen-reader-text">
967967
<?php

public/wp/wp-admin/network/upgrade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@
119119
do_action('wpmu_upgrade_site', $site_id);
120120
}
121121
echo '</ul>';
122-
?><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>
122+
?><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>
123123
<script type="text/javascript">
124124
<!--
125125
function nextpage() {
126-
location.href = "upgrade.php?action=upgrade&n=<?php echo $n + 5; ?>";
126+
location.href = "upgrade.php?action=upgrade&n=<?php echo $n + 5; ?>";
127127
}
128128
setTimeout( "nextpage()", 250 );
129129
//-->

public/wp/wp-admin/user-edit.php

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -773,40 +773,40 @@
773773
<p><?php _e('Application passwords allow authentication via non-interactive systems, such as XML-RPC or the REST API, without providing your actual password. Application passwords can be easily revoked. They cannot be used for traditional logins to your website.'); ?></p>
774774
<?php if (wp_is_application_passwords_available_for_user($user_id)) { ?>
775775
<?php
776-
if (is_multisite()) {
777-
$blogs = get_blogs_of_user($user_id, true);
778-
$blogs_count = count($blogs);
776+
if (is_multisite()) {
777+
$blogs = get_blogs_of_user($user_id, true);
778+
$blogs_count = count($blogs);
779779

780-
if ($blogs_count > 1) {
781-
?>
780+
if ($blogs_count > 1) {
781+
?>
782782
<p>
783783
<?php
784-
/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
785-
$message = _n(
786-
'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',
787-
'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',
788-
$blogs_count
789-
);
790-
791-
if (is_super_admin($user_id)) {
792-
/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
793-
$message = _n(
794-
'Application passwords grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.',
795-
'Application passwords grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.',
796-
$blogs_count
797-
);
798-
}
799-
800-
printf(
801-
$message,
802-
admin_url('my-sites.php'),
803-
number_format_i18n($blogs_count)
804-
);
805-
?>
784+
/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
785+
$message = _n(
786+
'Application passwords grant access to <a href="%1$s">the %2$s site in this installation that you have permissions on</a>.',
787+
'Application passwords grant access to <a href="%1$s">all %2$s sites in this installation that you have permissions on</a>.',
788+
$blogs_count
789+
);
790+
791+
if (is_super_admin($user_id)) {
792+
/* translators: 1: URL to my-sites.php, 2: Number of sites the user has. */
793+
$message = _n(
794+
'Application passwords grant access to <a href="%1$s">the %2$s site on the network as you have Super Admin rights</a>.',
795+
'Application passwords grant access to <a href="%1$s">all %2$s sites on the network as you have Super Admin rights</a>.',
796+
$blogs_count
797+
);
798+
}
799+
800+
printf(
801+
$message,
802+
admin_url('my-sites.php'),
803+
number_format_i18n($blogs_count)
804+
);
805+
?>
806806
</p>
807807
<?php
808-
}
809-
}
808+
}
809+
}
810810
?>
811811

812812
<?php if (! wp_is_site_protected_by_basic_auth('front')) { ?>

0 commit comments

Comments
 (0)