Skip to content

Commit 3d403cc

Browse files
committed
Merge remote-tracking branch 'upstream/trunk' into bugfix/30575-submenu-touch-support
2 parents 1922bd9 + e41e2d2 commit 3d403cc

File tree

22 files changed

+202
-748
lines changed

22 files changed

+202
-748
lines changed

src/wp-admin/includes/ajax-actions.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -690,18 +690,21 @@ function _wp_ajax_add_hierarchical_term() {
690690
);
691691
}
692692

693+
$parent_dropdown_args = array(
694+
'taxonomy' => $taxonomy->name,
695+
'hide_empty' => 0,
696+
'name' => 'new' . $taxonomy->name . '_parent',
697+
'orderby' => 'name',
698+
'hierarchical' => 1,
699+
'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —',
700+
);
701+
702+
/** This filter is documented in wp-admin/includes/meta-boxes.php */
703+
$parent_dropdown_args = apply_filters( 'post_edit_category_parent_dropdown_args', $parent_dropdown_args );
704+
693705
ob_start();
694706

695-
wp_dropdown_categories(
696-
array(
697-
'taxonomy' => $taxonomy->name,
698-
'hide_empty' => 0,
699-
'name' => 'new' . $taxonomy->name . '_parent',
700-
'orderby' => 'name',
701-
'hierarchical' => 1,
702-
'show_option_none' => '— ' . $taxonomy->labels->parent_item . ' —',
703-
)
704-
);
707+
wp_dropdown_categories( $parent_dropdown_args );
705708

706709
$sup = ob_get_clean();
707710

src/wp-admin/includes/deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function wp_shrink_dimensions( $width, $height, $wmax = 128, $hmax = 96 ) {
5353
}
5454

5555
/**
56-
* Calculated the new dimensions for a downsampled image.
56+
* Calculates the new dimensions for a downsampled image.
5757
*
5858
* @since 2.0.0
5959
* @deprecated 3.5.0 Use wp_constrain_dimensions()

src/wp-admin/includes/schema.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
245245

246246
// Multisite global tables.
247247
$ms_global_tables = "CREATE TABLE $wpdb->blogs (
248-
blog_id bigint(20) NOT NULL auto_increment,
249-
site_id bigint(20) NOT NULL default '0',
248+
blog_id bigint(20) unsigned NOT NULL auto_increment,
249+
site_id bigint(20) unsigned NOT NULL default '0',
250250
domain varchar(200) NOT NULL default '',
251251
path varchar(100) NOT NULL default '',
252252
registered datetime NOT NULL default '0000-00-00 00:00:00',
@@ -263,40 +263,40 @@ function wp_get_db_schema( $scope = 'all', $blog_id = null ) {
263263
) $charset_collate;
264264
CREATE TABLE $wpdb->blogmeta (
265265
meta_id bigint(20) unsigned NOT NULL auto_increment,
266-
blog_id bigint(20) NOT NULL default '0',
266+
blog_id bigint(20) unsigned NOT NULL default '0',
267267
meta_key varchar(255) default NULL,
268268
meta_value longtext,
269269
PRIMARY KEY (meta_id),
270270
KEY meta_key (meta_key($max_index_length)),
271271
KEY blog_id (blog_id)
272272
) $charset_collate;
273273
CREATE TABLE $wpdb->registration_log (
274-
ID bigint(20) NOT NULL auto_increment,
274+
ID bigint(20) unsigned NOT NULL auto_increment,
275275
email varchar(255) NOT NULL default '',
276276
IP varchar(30) NOT NULL default '',
277-
blog_id bigint(20) NOT NULL default '0',
277+
blog_id bigint(20) unsigned NOT NULL default '0',
278278
date_registered datetime NOT NULL default '0000-00-00 00:00:00',
279279
PRIMARY KEY (ID),
280280
KEY IP (IP)
281281
) $charset_collate;
282282
CREATE TABLE $wpdb->site (
283-
id bigint(20) NOT NULL auto_increment,
283+
id bigint(20) unsigned NOT NULL auto_increment,
284284
domain varchar(200) NOT NULL default '',
285285
path varchar(100) NOT NULL default '',
286286
PRIMARY KEY (id),
287287
KEY domain (domain(140),path(51))
288288
) $charset_collate;
289289
CREATE TABLE $wpdb->sitemeta (
290-
meta_id bigint(20) NOT NULL auto_increment,
291-
site_id bigint(20) NOT NULL default '0',
290+
meta_id bigint(20) unsigned NOT NULL auto_increment,
291+
site_id bigint(20) unsigned NOT NULL default '0',
292292
meta_key varchar(255) default NULL,
293293
meta_value longtext,
294294
PRIMARY KEY (meta_id),
295295
KEY meta_key (meta_key($max_index_length)),
296296
KEY site_id (site_id)
297297
) $charset_collate;
298298
CREATE TABLE $wpdb->signups (
299-
signup_id bigint(20) NOT NULL auto_increment,
299+
signup_id bigint(20) unsigned NOT NULL auto_increment,
300300
domain varchar(200) NOT NULL default '',
301301
path varchar(100) NOT NULL default '',
302302
title longtext NOT NULL,

src/wp-admin/includes/upgrade.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3711,7 +3711,7 @@ function pre_schema_upgrade() {
37113711
}
37123712

37133713
// Multisite schema upgrades.
3714-
if ( $wp_current_db_version < 25448 && is_multisite() && wp_should_upgrade_global_tables() ) {
3714+
if ( $wp_current_db_version < 60497 && is_multisite() && wp_should_upgrade_global_tables() ) {
37153715

37163716
// Upgrade versions prior to 3.7.
37173717
if ( $wp_current_db_version < 25179 ) {
@@ -3725,6 +3725,20 @@ function pre_schema_upgrade() {
37253725
$wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived varchar(1) NOT NULL default '0'" );
37263726
$wpdb->query( "ALTER TABLE $wpdb->blogs CHANGE COLUMN archived archived tinyint(2) NOT NULL default 0" );
37273727
}
3728+
3729+
// Upgrade versions prior to 6.9
3730+
if ( $wp_current_db_version < 60497 ) {
3731+
// Convert ID columns from signed to unsigned
3732+
$wpdb->query( "ALTER TABLE $wpdb->blogs MODIFY blog_id bigint(20) unsigned NOT NULL auto_increment" );
3733+
$wpdb->query( "ALTER TABLE $wpdb->blogs MODIFY site_id bigint(20) unsigned NOT NULL default 0" );
3734+
$wpdb->query( "ALTER TABLE $wpdb->blogmeta MODIFY blog_id bigint(20) unsigned NOT NULL default 0" );
3735+
$wpdb->query( "ALTER TABLE $wpdb->registration_log MODIFY ID bigint(20) unsigned NOT NULL auto_increment" );
3736+
$wpdb->query( "ALTER TABLE $wpdb->registration_log MODIFY blog_id bigint(20) unsigned NOT NULL default 0" );
3737+
$wpdb->query( "ALTER TABLE $wpdb->site MODIFY id bigint(20) unsigned NOT NULL auto_increment" );
3738+
$wpdb->query( "ALTER TABLE $wpdb->sitemeta MODIFY meta_id bigint(20) unsigned NOT NULL auto_increment" );
3739+
$wpdb->query( "ALTER TABLE $wpdb->sitemeta MODIFY site_id bigint(20) unsigned NOT NULL default 0" );
3740+
$wpdb->query( "ALTER TABLE $wpdb->signups MODIFY signup_id bigint(20) unsigned NOT NULL auto_increment" );
3741+
}
37283742
}
37293743

37303744
// Upgrade versions prior to 4.2.

src/wp-content/themes/twentynineteen/functions.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ function twentynineteen_content_width() {
250250
add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 );
251251

252252
/**
253-
* Enqueue scripts and styles.
253+
* Enqueues scripts and styles.
254+
*
255+
* @since Twenty Nineteen 1.0
254256
*/
255257
function twentynineteen_scripts() {
256258
wp_enqueue_style( 'twentynineteen-style', get_stylesheet_uri(), array(), wp_get_theme()->get( 'Version' ) );

src/wp-content/themes/twentyseventeen/functions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ function twentyseventeen_colors_css_wrap() {
445445

446446
/**
447447
* Enqueues scripts and styles.
448+
*
449+
* @since Twenty Seventeen 1.0
448450
*/
449451
function twentyseventeen_scripts() {
450452
// Add custom fonts, used in the main stylesheet.

src/wp-includes/SimplePie/src/Core.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)