Skip to content

Commit 2030226

Browse files
authored
Merge branch 'trunk' into 64564-get-block-wrapper-attributes
2 parents eff534e + 500fa46 commit 2030226

39 files changed

Lines changed: 2525 additions & 360 deletions

Gruntfile.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,17 @@ module.exports = function(grunt) {
612612
dest: WORKING_DIR + 'wp-includes/build/',
613613
} ],
614614
},
615+
'gutenberg-js': {
616+
files: [ {
617+
expand: true,
618+
cwd: 'gutenberg/build',
619+
src: [
620+
'pages/**/*.js',
621+
'routes/**/*.js',
622+
],
623+
dest: WORKING_DIR + 'wp-includes/build/',
624+
} ],
625+
},
615626
'gutenberg-modules': {
616627
files: [ {
617628
expand: true,
@@ -2041,6 +2052,7 @@ module.exports = function(grunt) {
20412052

20422053
grunt.registerTask( 'build:gutenberg', [
20432054
'copy:gutenberg-php',
2055+
'copy:gutenberg-js',
20442056
'gutenberg:copy',
20452057
'copy:gutenberg-modules',
20462058
'copy:gutenberg-styles',

src/wp-admin/css/colors/_admin.scss

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,27 +88,12 @@ input[type="checkbox"]:checked {
8888
border-color: var(--wp-admin-theme-color);
8989
}
9090

91-
input[type=checkbox]:checked::before {
92-
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E");
93-
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27#{url-friendly-colour(variables.$form-checked)}%27%2F%3E%3C%2Fsvg%3E") / '';
94-
}
95-
96-
// Checkbox checkmark - white for visibility on theme color background
97-
input[type="checkbox"]:checked::before {
98-
content: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.83%204.89l1.34.94-5.81%208.38H9.02L5.78%209.67l1.34-1.25%202.57%202.4z%27%20fill%3D%27%23ffffff%27%2F%3E%3C%2Fsvg%3E") / '';
99-
}
100-
10191
// Radio checked state - uses theme color
10292
input[type="radio"]:checked {
10393
background: var(--wp-admin-theme-color);
10494
border-color: var(--wp-admin-theme-color);
10595
}
10696

107-
// Radio dot - white for visibility on theme color background
108-
input[type="radio"]:checked::before {
109-
background: tokens.$white;
110-
}
111-
11297
.wp-core-ui input[type="reset"]:hover,
11398
.wp-core-ui input[type="reset"]:active {
11499
color: variables.$link-focus;

src/wp-admin/css/common.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,12 @@ th.action-links {
13801380
}
13811381
}
13821382

1383+
@media only screen and (max-width: 1250px) {
1384+
.wp-filter:has(.plugin-install-search) .search-form {
1385+
margin: 11px 0;
1386+
}
1387+
}
1388+
13831389
@media only screen and (max-width: 1120px) {
13841390
.filter-drawer {
13851391
border-bottom: 1px solid #f0f0f1;

src/wp-admin/includes/file.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) {
19581958
}
19591959
}
19601960

1961-
/** This filter is documented in src/wp-admin/includes/file.php */
1961+
/** This filter is documented in wp-admin/includes/file.php */
19621962
$pre = apply_filters( 'pre_unzip_file', null, $file, $to, $needed_dirs, $required_space );
19631963

19641964
if ( null !== $pre ) {
@@ -1985,7 +1985,7 @@ function _unzip_file_pclzip( $file, $to, $needed_dirs = array() ) {
19851985
}
19861986
}
19871987

1988-
/** This action is documented in src/wp-admin/includes/file.php */
1988+
/** This filter is documented in wp-admin/includes/file.php */
19891989
$result = apply_filters( 'unzip_file', true, $file, $to, $needed_dirs, $required_space );
19901990

19911991
unset( $needed_dirs );

src/wp-includes/admin-bar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ function wp_admin_bar_edit_menu( $wp_admin_bar ) {
945945
* @param WP_Admin_Bar $wp_admin_bar The WP_Admin_Bar instance.
946946
*/
947947
function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
948-
if ( ! is_admin() ) {
948+
if ( ! is_admin() || ! wp_script_is( 'wp-core-commands', 'enqueued' ) ) {
949949
return;
950950
}
951951

@@ -954,7 +954,7 @@ function wp_admin_bar_command_palette_menu( WP_Admin_Bar $wp_admin_bar ): void {
954954
? _x( '⌘K', 'keyboard shortcut to open the command palette' )
955955
: _x( 'Ctrl+K', 'keyboard shortcut to open the command palette' );
956956
$title = sprintf(
957-
'<span class="ab-label"><kbd>%s</kbd><span class="screen-reader-text"> %s</span></span>',
957+
'<span class="ab-icon" aria-hidden="true"></span><span class="ab-label"><kbd>%s</kbd><span class="screen-reader-text"> %s</span></span>',
958958
$shortcut_label,
959959
/* translators: Hidden accessibility text. */
960960
__( 'Open command palette' ),

src/wp-includes/ai-client/class-wp-ai-client-prompt-builder.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use WordPress\AiClient\Builders\PromptBuilder;
1111
use WordPress\AiClient\Files\DTO\File;
1212
use WordPress\AiClient\Files\Enums\FileTypeEnum;
13+
use WordPress\AiClient\Files\Enums\MediaOrientationEnum;
1314
use WordPress\AiClient\Messages\DTO\Message;
1415
use WordPress\AiClient\Messages\DTO\MessagePart;
1516
use WordPress\AiClient\Messages\Enums\ModalityEnum;
@@ -66,6 +67,9 @@
6667
* @method self as_output_schema(array<string, mixed> $schema) Sets the output schema.
6768
* @method self as_output_modalities(ModalityEnum ...$modalities) Sets the output modalities.
6869
* @method self as_output_file_type(FileTypeEnum $fileType) Sets the output file type.
70+
* @method self as_output_media_orientation(MediaOrientationEnum $orientation) Sets the output media orientation.
71+
* @method self as_output_media_aspect_ratio(string $aspectRatio) Sets the output media aspect ratio.
72+
* @method self as_output_speech_voice(string $voice) Sets the output speech voice.
6973
* @method self as_json_response(?array<string, mixed> $schema = null) Configures the prompt for JSON response output.
7074
* @method bool|WP_Error is_supported(?CapabilityEnum $capability = null) Checks if the prompt is supported for the given capability.
7175
* @method bool is_supported_for_text_generation() Checks if the prompt is supported for text generation.
@@ -80,6 +84,7 @@
8084
* @method GenerativeAiResult|WP_Error generate_image_result() Generates an image result from the prompt.
8185
* @method GenerativeAiResult|WP_Error generate_speech_result() Generates a speech result from the prompt.
8286
* @method GenerativeAiResult|WP_Error convert_text_to_speech_result() Converts text to speech and returns the result.
87+
* @method GenerativeAiResult|WP_Error generate_video_result() Generates a video result from the prompt.
8388
* @method string|WP_Error generate_text() Generates text from the prompt.
8489
* @method list<string>|WP_Error generate_texts(?int $candidateCount = null) Generates multiple text candidates from the prompt.
8590
* @method File|WP_Error generate_image() Generates an image from the prompt.
@@ -88,6 +93,8 @@
8893
* @method list<File>|WP_Error convert_text_to_speeches(?int $candidateCount = null) Converts text to multiple speech outputs.
8994
* @method File|WP_Error generate_speech() Generates speech from the prompt.
9095
* @method list<File>|WP_Error generate_speeches(?int $candidateCount = null) Generates multiple speech outputs from the prompt.
96+
* @method File|WP_Error generate_video() Generates a video from the prompt.
97+
* @method list<File>|WP_Error generate_videos(?int $candidateCount = null) Generates multiple videos from the prompt.
9198
*/
9299
class WP_AI_Client_Prompt_Builder {
93100

@@ -121,6 +128,7 @@ class WP_AI_Client_Prompt_Builder {
121128
'generate_image_result' => true,
122129
'generate_speech_result' => true,
123130
'convert_text_to_speech_result' => true,
131+
'generate_video_result' => true,
124132
'generate_text' => true,
125133
'generate_texts' => true,
126134
'generate_image' => true,
@@ -129,6 +137,8 @@ class WP_AI_Client_Prompt_Builder {
129137
'convert_text_to_speeches' => true,
130138
'generate_speech' => true,
131139
'generate_speeches' => true,
140+
'generate_video' => true,
141+
'generate_videos' => true,
132142
);
133143

134144
/**

0 commit comments

Comments
 (0)