Skip to content

Commit b776d49

Browse files
committed
Upgrade WordPress to 6.3
1 parent 1931cf2 commit b776d49

File tree

1,017 files changed

+141114
-90391
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,017 files changed

+141114
-90391
lines changed

util/upgrade-wp.sh

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
cd ..
4+
mkdir temp
5+
cd temp
6+
wget https://wordpress.org/latest.zip
7+
unzip latest.zip
8+
cp ../wp/wp-config.php wordpress/
9+
mkdir wordpress/wp-content/mu-plugins
10+
cp ../wp/wp-content/mu-plugins/serverlesswp.php wordpress/wp-content/mu-plugins/
11+
rm -rf wordpress/wp-content/plugins/akismet wordpress/wp-content/plugins/hello.php
12+
rm -rf wordpress/wp-content/themes/twentytwentytwo wordpress/wp-content/themes/twentytwentyone
13+
wget https://downloads.wordpress.org/plugin/amazon-s3-and-cloudfront.zip
14+
unzip amazon-s3-and-cloudfront.zip
15+
mv amazon-s3-and-cloudfront wordpress/wp-content/plugins/
16+
rm -rf ../wp
17+
mv wordpress ../wp
18+
cd ..
19+
rm -rf temp

wp/readme.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ <h2>Migrating from other systems</h2>
5151

5252
<h2>System Requirements</h2>
5353
<ul>
54-
<li><a href="https://secure.php.net/">PHP</a> version <strong>5.6.20</strong> or greater.</li>
54+
<li><a href="https://secure.php.net/">PHP</a> version <strong>7.0</strong> or greater.</li>
5555
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.0</strong> or greater.</li>
5656
</ul>
5757

5858
<h3>Recommendations</h3>
5959
<ul>
6060
<li><a href="https://secure.php.net/">PHP</a> version <strong>7.4</strong> or greater.</li>
61-
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.7</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.3</strong> or greater.</li>
61+
<li><a href="https://www.mysql.com/">MySQL</a> version <strong>5.7</strong> or greater OR <a href="https://mariadb.org/">MariaDB</a> version <strong>10.4</strong> or greater.</li>
6262
<li>The <a href="https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html">mod_rewrite</a> Apache module.</li>
6363
<li><a href="https://wordpress.org/news/2016/12/moving-toward-ssl/">HTTPS</a> support.</li>
6464
<li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>

wp/wp-activate.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
*/
8888
function do_activate_header() {
8989
/**
90-
* Fires before the Site Activation page is loaded.
90+
* Fires within the `<head>` section of the Site Activation page.
9191
*
9292
* Fires on the {@see 'wp_head'} action.
9393
*
@@ -120,7 +120,7 @@ function wpmu_activate_stylesheet() {
120120

121121
get_header( 'wp-activate' );
122122

123-
$blog_details = get_blog_details();
123+
$blog_details = get_site();
124124
?>
125125

126126
<div id="signup-content" class="widecolumn">

wp/wp-admin/about.php

+114-137
Large diffs are not rendered by default.

wp/wp-admin/admin-header.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
<?php
110110

111111
/**
112-
* Enqueue scripts for all admin pages.
112+
* Fires when enqueuing scripts for all admin pages.
113113
*
114114
* @since 2.8.0
115115
*
@@ -242,7 +242,7 @@
242242
$admin_body_classes = apply_filters( 'admin_body_class', '' );
243243
$admin_body_classes = ltrim( $admin_body_classes . ' ' . $admin_body_class );
244244
?>
245-
<body class="wp-admin wp-core-ui no-js <?php echo $admin_body_classes; ?>">
245+
<body class="wp-admin wp-core-ui no-js <?php echo esc_attr( $admin_body_classes ); ?>">
246246
<script type="text/javascript">
247247
document.body.className = document.body.className.replace('no-js','js');
248248
</script>

wp/wp-admin/admin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
define( 'WP_IMPORTING', true );
349349

350350
/**
351-
* Whether to filter imported data through kses on import.
351+
* Filters whether to filter imported data through kses on import.
352352
*
353353
* Multisite uses this hook to filter all data through kses by default,
354354
* as a super administrator may be assisting an untrusted user.

wp/wp-admin/comment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
comment_footer_die( __( 'Sorry, you are not allowed to edit comments on this post.' ) );
283283
}
284284

285-
if ( wp_get_referer() && ! $noredir && false === strpos( wp_get_referer(), 'comment.php' ) ) {
285+
if ( wp_get_referer() && ! $noredir && ! str_contains( wp_get_referer(), 'comment.php' ) ) {
286286
$redir = wp_get_referer();
287287
} elseif ( wp_get_original_referer() && ! $noredir ) {
288288
$redir = wp_get_original_referer();

wp/wp-admin/contribute.php

+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<?php
2+
/**
3+
* Contribute administration panel.
4+
*
5+
* @package WordPress
6+
* @subpackage Administration
7+
*/
8+
9+
/** WordPress Administration Bootstrap */
10+
require_once __DIR__ . '/admin.php';
11+
12+
// Used in the HTML title tag.
13+
$title = __( 'Get Involved' );
14+
15+
list( $display_version ) = explode( '-', get_bloginfo( 'version' ) );
16+
17+
require_once ABSPATH . 'wp-admin/admin-header.php';
18+
?>
19+
<div class="wrap about__container">
20+
21+
<div class="about__header">
22+
<div class="about__header-title">
23+
<h1>
24+
<?php _e( 'Get Involved' ); ?>
25+
</h1>
26+
</div>
27+
28+
<div class="about__header-text">
29+
<?php _e( 'Be the future of WordPress' ); ?>
30+
</div>
31+
</div>
32+
33+
<nav class="about__header-navigation nav-tab-wrapper wp-clearfix" aria-label="<?php esc_attr_e( 'Secondary menu' ); ?>">
34+
<a href="about.php" class="nav-tab"><?php _e( 'What&#8217;s New' ); ?></a>
35+
<a href="credits.php" class="nav-tab"><?php _e( 'Credits' ); ?></a>
36+
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
37+
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
38+
<a href="contribute.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Get Involved' ); ?></a>
39+
</nav>
40+
41+
<div class="about__section has-2-columns is-wider-right">
42+
<div class="column about__image">
43+
<img src="<?php echo esc_url( admin_url( 'images/contribute-main.svg?ver=6.3' ) ); ?>" alt="" />
44+
</div>
45+
<div class="column is-vertically-aligned-center">
46+
<p><?php _e( 'Do you use WordPress for work, for personal projects, or even just for fun? You can help shape the long-term success of the open source project that powers millions of websites around the world.' ); ?></p>
47+
<p><?php _e( 'Join the WordPress contributor community and connect with others who are passionate about maintaining a free and open web.' ); ?></p>
48+
49+
<ul>
50+
<li><?php _e( 'Be part of a global open source community.' ); ?></li>
51+
<li><?php _e( 'Apply your skills or learn new ones.' ); ?></li>
52+
<li><?php _e( 'Grow your network and make friends.' ); ?></li>
53+
</ul>
54+
</div>
55+
</div>
56+
57+
<div class="about__section has-2-columns is-wider-left">
58+
<div class="column is-vertically-aligned-center">
59+
<h3><?php _e( 'No-code contribution' ); ?></h3>
60+
<p><?php _e( 'WordPress may thrive on technical contributions, but you don&#8217;t have to code to contribute. Here are some of the ways you can make an impact without writing a single line of code:' ); ?></p>
61+
<ul>
62+
<li><?php _e( '<strong>Share</strong> your knowledge in the WordPress support forums.' ); ?></li>
63+
<li><?php _e( '<strong>Write</strong> or improve documentation for WordPress.' ); ?></li>
64+
<li><?php _e( '<strong>Translate</strong> WordPress into your local language.' ); ?></li>
65+
<li><?php _e( '<strong>Create</strong> and improve WordPress educational materials.' ); ?></li>
66+
<li><?php _e( '<strong>Promote</strong> the WordPress project to your community.' ); ?></li>
67+
<li><?php _e( '<strong>Curate</strong> submissions or take photos for the WordPress Photos Directory.' ); ?></li>
68+
<li><?php _e( '<strong>Organize</strong> or participate in local WordPress Meetups and WordCamps.' ); ?></li>
69+
<li><?php _e( '<strong>Lend</strong> your creative imagination to the WordPress UI design.' ); ?></li>
70+
<li><?php _e( '<strong>Edit</strong> videos and add captions to WordPress.tv.' ); ?></li>
71+
<li><?php _e( '<strong>Explore</strong> ways to reduce the environmental impact of millions of websites.' ); ?></li>
72+
</ul>
73+
</div>
74+
<div class="column">
75+
<img src="<?php echo esc_url( admin_url( 'images/contribute-no-code.svg?ver=6.3' ) ); ?>" alt="" />
76+
</div>
77+
</div>
78+
<div class="about__section has-2-columns is-wider-right">
79+
<div class="column">
80+
<img src="<?php echo esc_url( admin_url( 'images/contribute-code.svg?ver=6.3' ) ); ?>" alt="" />
81+
</div>
82+
<div class="column is-vertically-aligned-center">
83+
<h3><?php _e( 'Code-based contribution' ); ?></h3>
84+
<p><?php _e( 'If you do code, or want to learn how, you can contribute technically in numerous ways:' ); ?></p>
85+
<ul>
86+
<li><?php _e( '<strong>Find</strong> and report bugs in the WordPress core software.' ); ?></li>
87+
<li><?php _e( '<strong>Test</strong> new releases and proposed features for the block editor.' ); ?></li>
88+
<li><?php _e( '<strong>Write</strong> and submit patches to fix bugs or help build new features.' ); ?></li>
89+
<li><?php _e( '<strong>Contribute</strong> to the code, improve the UX, and test the WordPress app.' ); ?></li>
90+
</ul>
91+
<p><?php _e( 'WordPress embraces new technologies, while being committed to backward compatibility. The WordPress project uses the following languages and libraries:' ); ?></p>
92+
<ul>
93+
<li><?php _e( 'Core and Block Editor: HTML, CSS, PHP, SQL, JavaScript, and React' ); ?></li>
94+
<li><?php _e( 'WordPress app: Kotlin, Java, Swift, Objective-C, Vue, Python, and TypeScript' ); ?></li>
95+
</ul>
96+
</div>
97+
</div>
98+
99+
<div class="about__section is-feature has-subtle-background-color">
100+
<div class="column">
101+
<h2><?php _e( 'Shape the future of the web with WordPress' ); ?></h2>
102+
<p><?php _e( 'Finding the area that aligns with your skills and interests is the first step toward meaningful contribution. With more than 20 Make WordPress teams working on different parts of the open source WordPress project, there&#8217;s a place for everyone, no matter what your skill set is.' ); ?></p>
103+
<p class="aligncenter"><a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Find your team &rarr;' ); ?></a></p>
104+
</div>
105+
</div>
106+
107+
</div>
108+
<?php
109+
require_once ABSPATH . 'wp-admin/admin-footer.php';

wp/wp-admin/credits.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
<a href="credits.php" class="nav-tab nav-tab-active" aria-current="page"><?php _e( 'Credits' ); ?></a>
4545
<a href="freedoms.php" class="nav-tab"><?php _e( 'Freedoms' ); ?></a>
4646
<a href="privacy.php" class="nav-tab"><?php _e( 'Privacy' ); ?></a>
47+
<a href="contribute.php" class="nav-tab"><?php _e( 'Get Involved' ); ?></a>
4748
</nav>
4849

4950
<div class="about__section has-1-column has-gutters">
@@ -59,15 +60,15 @@
5960
);
6061
?>
6162
<br />
62-
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
63+
<a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
6364
</p>
6465

6566
<?php else : ?>
6667

6768
<p>
6869
<?php _e( 'Want to see your name in lights on this page?' ); ?>
6970
<br />
70-
<a href="https://make.wordpress.org/"><?php _e( 'Get involved in WordPress.' ); ?></a>
71+
<a href="<?php echo esc_url( __( 'https://make.wordpress.org/contribute/' ) ); ?>"><?php _e( 'Get involved in WordPress.' ); ?></a>
7172
</p>
7273

7374
<?php endif; ?>

0 commit comments

Comments
 (0)