Skip to content

Commit

Permalink
Docs: Fix some typos (#55654)
Browse files Browse the repository at this point in the history
* Fix some typos
* Fix additional typo
  • Loading branch information
Soean authored Oct 27, 2023
1 parent 564ef55 commit bd9eaeb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ When to use which prefix is a judgement call, but the general rule is that if yo

The above recommendations in relation to plugin-specific prefixes/suffixes are relevant only to files in the `lib` directory and only in the Gutenberg plugin.

`Gutenberg` prefixes/suffixes _should not_ be used in Core PHP code. When synching `/lib` files to Core, plugin-specific prefixes/suffixes are generally replaced with their `WP_` or `wp_` equivalents manually.
`Gutenberg` prefixes/suffixes _should not_ be used in Core PHP code. When syncing `/lib` files to Core, plugin-specific prefixes/suffixes are generally replaced with their `WP_` or `wp_` equivalents manually.

Accordingly, unless required to run plugin-only code, you should avoid using plugin-specific prefixes/suffixes in any block PHP code. Core blocks in the plugin are [published as NPM packages](https://github.com/WordPress/gutenberg/blob/trunk/docs/contributors/code/release.md#packages-releases-to-npm-and-wordpress-core-updates), which Core consumes as NPM dependencies.

Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/disable-tinymce.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function gutenberg_test_tinymce_access() {
/**
* Whether the current editor contains a classic block instance.
*
* @return bool True if the editor contains a classic block, false otherwse.
* @return bool True if the editor contains a classic block, false otherwise.
*/
function gutenberg_post_being_edited_requires_classic_block() {
if ( ! is_admin() ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private function download_or_move_font_faces( $files ) {

$new_font_faces = array();
foreach ( $this->data['fontFace'] as $font_face ) {
// If the fonts are not meant to be dowloaded or uploaded
// If the fonts are not meant to be downloaded or uploaded
// (for example to install fonts that use a remote url).
$new_font_face = $font_face;

Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/synchronization.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Bootstraps synchrnoization (collborative editing).
* Bootstraps synchronization (collaborative editing).
*
* @package gutenberg
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/block-editor/src/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function RichTextWrapper(
};
};
// This selector must run on every render so the right selection state is
// retreived from the store on merge.
// retrieved from the store on merge.
// To do: fix this somehow.
const { selectionStart, selectionEnd, isSelected } = useSelect( selector );
const { getSelectionStart, getSelectionEnd, getBlockRootClientId } =
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/comment-author-avatar/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function render_block_core_comment_author_avatar( $attributes, $content, $block
return '';
}

// This is the only way to retreive style and classes on different instances.
// This is the only way to retrieve style and classes on different instances.
$wrapper_attributes = WP_Block_Supports::get_instance()->apply_block_supports();

/**
Expand Down

0 comments on commit bd9eaeb

Please sign in to comment.