Skip to content

Commit 8d29438

Browse files
Merge branch 'trunk' into add/trash-child-notes-with-parent
2 parents b9c878c + aae6634 commit 8d29438

File tree

11 files changed

+46
-27
lines changed

11 files changed

+46
-27
lines changed

.github/workflows/install-testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,12 @@ jobs:
9595
- db-version: '9.1'
9696
- db-version: '9.2'
9797
- db-version: '9.3'
98+
- db-version: '9.4'
9899
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
99100
- php: '7.2'
100-
db-version: '9.4'
101+
db-version: '9.5'
101102
- php: '7.3'
102-
db-version: '9.4'
103+
db-version: '9.5'
103104

104105
services:
105106
database:

.github/workflows/local-docker-environment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,12 @@ jobs:
105105
- db-version: '9.1'
106106
- db-version: '9.2'
107107
- db-version: '9.3'
108+
- db-version: '9.4'
108109
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
109110
- php: '7.2'
110-
db-version: '9.4'
111+
db-version: '9.5'
111112
- php: '7.3'
112-
db-version: '9.4'
113+
db-version: '9.5'
113114
# No PHP 8.5 + Memcached support yet.
114115
- php: '8.5'
115116
memcached: true

.github/workflows/phpunit-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,20 +203,20 @@ jobs:
203203
os: [ ubuntu-24.04 ]
204204
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
205205
db-type: [ 'mysql', 'mariadb' ]
206-
db-version: [ '9.4', '12.0' ]
206+
db-version: [ '9.5', '12.0' ]
207207
multisite: [ false, true ]
208208
memcached: [ false ]
209209
db-innovation: [ true ]
210210

211211
exclude:
212212
# MySQL 9.0+ will not work on PHP <= 7.3 because mysql_native_password was removed. See https://core.trac.wordpress.org/ticket/61218.
213213
- php: '7.2'
214-
db-version: '9.4'
214+
db-version: '9.5'
215215
- php: '7.3'
216-
db-version: '9.4'
216+
db-version: '9.5'
217217
# Exclude version combinations that don't exist.
218218
- db-type: 'mariadb'
219-
db-version: '9.4'
219+
db-version: '9.5'
220220
- db-type: 'mysql'
221221
db-version: '12.0'
222222
with:

.github/workflows/upgrade-testing.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
os: [ 'ubuntu-24.04' ]
7171
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
7272
db-type: [ 'mysql' ]
73-
db-version: [ '5.7', '8.0', '8.4', '9.4' ]
73+
db-version: [ '5.7', '8.0', '8.4', '9.5' ]
7474
wp: [ '6.7', '6.8' ]
7575
multisite: [ false, true ]
7676

@@ -82,9 +82,9 @@ jobs:
8282
db-version: '8.4'
8383
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
8484
- php: '7.2'
85-
db-version: '9.4'
85+
db-version: '9.5'
8686
- php: '7.3'
87-
db-version: '9.4'
87+
db-version: '9.5'
8888
with:
8989
os: ${{ matrix.os }}
9090
php: ${{ matrix.php }}
@@ -201,7 +201,7 @@ jobs:
201201
os: [ 'ubuntu-24.04' ]
202202
php: [ '7.2', '7.3', '7.4' ]
203203
db-type: [ 'mysql' ]
204-
db-version: [ '5.7', '8.0', '8.4', '9.4' ]
204+
db-version: [ '5.7', '8.0', '8.4', '9.5' ]
205205
wp: [ '4.7' ]
206206
multisite: [ false, true ]
207207

@@ -213,9 +213,9 @@ jobs:
213213
db-version: '8.4'
214214
# MySQL 9.0+ will not work on PHP 7.2 & 7.3. See https://core.trac.wordpress.org/ticket/61218.
215215
- php: '7.2'
216-
db-version: '9.4'
216+
db-version: '9.5'
217217
- php: '7.3'
218-
db-version: '9.4'
218+
db-version: '9.5'
219219
with:
220220
os: ${{ matrix.os }}
221221
php: ${{ matrix.php }}

.version-support-mysql.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"7-0": [
3+
"9.5",
34
"9.4",
45
"9.3",
56
"9.2",

src/wp-admin/includes/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $call
14271427
if ( null === $position || ! is_numeric( $position ) ) {
14281428
$menu[] = $new_menu;
14291429
} elseif ( isset( $menu[ (string) $position ] ) ) {
1430-
$collision_avoider = base_convert( substr( md5( $menu_slug . $menu_title ), -4 ), 16, 10 ) * 0.00001;
1430+
$collision_avoider = (int) base_convert( substr( md5( $menu_slug . $menu_title ), -4 ), 16, 10 ) * 0.00001;
14311431
$position = (string) ( $position + $collision_avoider );
14321432
$menu[ $position ] = $new_menu;
14331433
} else {

src/wp-includes/abilities.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ function wp_register_core_abilities(): void {
220220
'db_server_info' => array(
221221
'type' => 'string',
222222
'description' => __( 'The database server vendor and version string reported by the driver.' ),
223-
'examples' => array( '8.0.34', '10.11.6-MariaDB' ),
224223
),
225224
'wp_version' => array(
226225
'type' => 'string',

src/wp-includes/block-supports/typography.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function wp_typography_get_preset_inline_style_value( $style_value, $css_propert
306306
* @return string Filtered block content.
307307
*/
308308
function wp_render_typography_support( $block_content, $block ) {
309-
if ( ! empty( $block['attrs']['fitText'] ) && ! is_admin() ) {
309+
if ( ! empty( $block['attrs']['fitText'] ) && $block['attrs']['fitText'] && ! is_admin() ) {
310310
wp_enqueue_script_module( '@wordpress/block-editor/utils/fit-text-frontend' );
311311

312312
// Add Interactivity API directives for fit text to work with client-side navigation.
@@ -322,6 +322,8 @@ function wp_render_typography_support( $block_content, $block ) {
322322
$block_content = $processor->get_updated_html();
323323
}
324324
}
325+
// fitText supersedes any other typography features
326+
return $block_content;
325327
}
326328
if ( ! isset( $block['attrs']['style']['typography']['fontSize'] ) ) {
327329
return $block_content;

src/wp-includes/class-wp-duotone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private static function colord_parse_hex( $hex ) {
246246
'r' => (int) base_convert( $hex[0] . $hex[0], 16, 10 ),
247247
'g' => (int) base_convert( $hex[1] . $hex[1], 16, 10 ),
248248
'b' => (int) base_convert( $hex[2] . $hex[2], 16, 10 ),
249-
'a' => 4 === strlen( $hex ) ? round( base_convert( $hex[3] . $hex[3], 16, 10 ) / 255, 2 ) : 1,
249+
'a' => 4 === strlen( $hex ) ? round( (int) base_convert( $hex[3] . $hex[3], 16, 10 ) / 255, 2 ) : 1,
250250
);
251251
}
252252

src/wp-includes/class-wpdb.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -960,13 +960,7 @@ public function set_sql_mode( $modes = array() ) {
960960
return;
961961
}
962962

963-
$modes_str = $modes_array[0];
964-
965-
if ( empty( $modes_str ) ) {
966-
return;
967-
}
968-
969-
$modes = explode( ',', $modes_str );
963+
$modes = explode( ',', $modes_array[0] );
970964
}
971965

972966
$modes = array_change_key_case( $modes, CASE_UPPER );

0 commit comments

Comments
 (0)