Skip to content

Commit

Permalink
prep build 11/8
Browse files Browse the repository at this point in the history
  • Loading branch information
bph committed Nov 8, 2024
2 parents 2c70121 + 1a1db8b commit ba1361a
Show file tree
Hide file tree
Showing 20 changed files with 51 additions and 24 deletions.
3 changes: 3 additions & 0 deletions backport-changelog/6.7/7676.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/7676

* https://github.com/WordPress/gutenberg/pull/66359
20 changes: 20 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
== Changelog ==

= 19.6.1 =


## Changelog

### Bug Fixes

#### List View
- Block Editor: Fix stale dependencies of selectors depending on editorTool preference. ([66833](https://github.com/WordPress/gutenberg/pull/66833))




## Contributors

The following contributors merged PRs in this release:

@mcsf


= 19.6.0 =


Expand Down
8 changes: 7 additions & 1 deletion lib/compat/wordpress-6.7/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ function _gutenberg_add_block_templates_from_registry( $query_result, $query, $t
}

if ( ! isset( $query['wp_id'] ) ) {
$template_files = _gutenberg_get_block_templates_files( $template_type, $query );
// We need to unset the post_type query param because some templates
// would be excluded otherwise, like `page.html` when looking for
// `page` templates.
// See: https://github.com/WordPress/gutenberg/issues/65584
$template_files_query = $query;
unset( $template_files_query['post_type'] );
$template_files = _gutenberg_get_block_templates_files( $template_type, $template_files_query );

/*
* Add templates registered in the template registry. Filtering out the ones which have a theme file.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gutenberg",
"version": "19.6.0",
"version": "19.6.1",
"private": true,
"description": "A new WordPress editor experience.",
"author": "The WordPress Contributors",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,20 +317,20 @@ export function MediaPlaceholder( {

if ( instructions === undefined && mediaUpload ) {
instructions = __(
'Upload a media file or pick one from your media library.'
'Drag and drop an image or video, upload, or choose from your library.'
);

if ( isAudio ) {
instructions = __(
'Upload or drag an audio file here, or pick one from your library.'
'Drag and drop an audio file, upload, or choose from your library.'
);
} else if ( isImage ) {
instructions = __(
'Upload or drag an image file here, or pick one from your library.'
'Drag and drop an image, upload, or choose from your library.'
);
} else if ( isVideo ) {
instructions = __(
'Upload or drag a video file here, or pick one from your library.'
'Drag and drop a video, upload, or choose from your library.'
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/edit/block-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function CoverBlockControls( {
onSelect={ onSelectMedia }
onToggleFeaturedImage={ toggleUseFeaturedImage }
useFeaturedImage={ useFeaturedImage }
name={ ! url ? __( 'Add Media' ) : __( 'Replace' ) }
name={ ! url ? __( 'Add media' ) : __( 'Replace' ) }
onReset={ onClearMedia }
/>
</BlockControls>
Expand Down
3 changes: 0 additions & 3 deletions packages/block-library/src/cover/edit/cover-placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export default function CoverPlaceholder( {
icon={ <BlockIcon icon={ icon } /> }
labels={ {
title: __( 'Cover' ),
instructions: __(
'Drag and drop onto this block, upload, or select existing media from your library.'
),
} }
onSelect={ onSelectMedia }
accept="image/*,video/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/edit/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ function CoverEdit( {
setAttributes( { minHeight: newMinHeight } );
},
// Hide the resize handle if an aspect ratio is set, as the aspect ratio takes precedence.
showHandle: ! attributes.style?.dimensions?.aspectRatio ? true : false,
showHandle: ! attributes.style?.dimensions?.aspectRatio,
size: resizableBoxDimensions,
width,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/file/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function FileEdit( { attributes, isSelected, setAttributes, clientId } ) {
labels={ {
title: __( 'File' ),
instructions: __(
'Upload a file or pick one from your media library.'
'Drag and drop a file, upload, or choose from your library.'
),
} }
onSelect={ onSelectFile }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/gallery/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const ALLOWED_MEDIA_TYPES = [ 'image' ];

const PLACEHOLDER_TEXT = Platform.isNative
? __( 'Add media' )
: __( 'Drag images, upload new ones or select files from your library.' );
: __( 'Drag and drop images, upload, or choose from your library.' );

const MOBILE_CONTROL_PROPS_RANGE_CONTROL = Platform.isNative
? { type: 'stepper' }
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export function ImageEdit( {
! lockUrlControls &&
! isSmallContainer &&
__(
'Upload or drag an image file here, or pick one from your library.'
'Drag and drop an image, upload, or choose from your library.'
)
}
style={ {
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/paragraph/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function DropCapControl( { clientId, attributes, setAttributes } ) {
checked={ !! dropCap }
onChange={ () => setAttributes( { dropCap: ! dropCap } ) }
help={ helpText }
disabled={ hasDropCapDisabled( align ) ? true : false }
disabled={ hasDropCapDisabled( align ) }
/>
</ToolsPanelItem>
);
Expand Down
4 changes: 2 additions & 2 deletions packages/block-library/src/search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ function render_block_core_search( $attributes ) {

$input_id = wp_unique_id( 'wp-block-search__input-' );
$classnames = classnames_for_block_core_search( $attributes );
$show_label = ( ! empty( $attributes['showLabel'] ) ) ? true : false;
$use_icon_button = ( ! empty( $attributes['buttonUseIcon'] ) ) ? true : false;
$show_label = ! empty( $attributes['showLabel'] );
$use_icon_button = ! empty( $attributes['buttonUseIcon'] );
$show_button = ( ! empty( $attributes['buttonPosition'] ) && 'no-button' === $attributes['buttonPosition'] ) ? false : true;
$button_position = $show_button ? $attributes['buttonPosition'] : null;
$query_params = ( ! empty( $attributes['query'] ) ) ? $attributes['query'] : array();
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/video/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function VideoEdit( {
icon={ icon }
label={ __( 'Video' ) }
instructions={ __(
'Upload a video file, pick one from your media library, or add one with a URL.'
'Drag and drop a video, upload, or choose from your library.'
) }
>
{ content }
Expand Down
1 change: 1 addition & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
### Internal

- `Snackbar`: Use link variant for action Button ([#66560](https://github.com/WordPress/gutenberg/pull/66560)).
- `BorderControl`: Remove unnecessary boolean assignments ([#66857](https://github.com/WordPress/gutenberg/pull/66857)).

## 28.11.0 (2024-10-30)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ const BorderControlDropdown = (
tooltipPosition={ dropdownPosition }
label={ __( 'Border color and style picker' ) }
showTooltip
__next40pxDefaultSize={ size === '__unstable-large' ? true : false }
__next40pxDefaultSize={ size === '__unstable-large' }
>
<span className={ indicatorWrapperClassName }>
<ColorIndicator
Expand Down
2 changes: 1 addition & 1 deletion packages/docgen/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = ( sourceFile, options ) => {
}
sourceFile = path.join( processDir, sourceFile );

const debugMode = options.debug ? true : false;
const debugMode = options.debug;

const inputBase = path.join(
path.dirname( sourceFile ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function setupRest( this: RequestUtils ): Promise< StorageState > {
return error;
}

return nonce && rootURL ? true : false;
return !! ( nonce && rootURL );
},
{
message: 'Failed to setup REST API.',
Expand Down
2 changes: 1 addition & 1 deletion packages/media-utils/src/components/media-upload/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class MediaUpload extends Component {
state: currentState,
multiple,
selection,
editing: value && value.length ? true : false,
editing: !! value?.length,
} );
wp.media.frame = this.frame;
this.initializeListeners();
Expand Down

0 comments on commit ba1361a

Please sign in to comment.