diff --git a/lib/README.md b/lib/README.md index 0650d82bb36b6..0e8c4263a4991 100644 --- a/lib/README.md +++ b/lib/README.md @@ -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. diff --git a/lib/experimental/disable-tinymce.php b/lib/experimental/disable-tinymce.php index ff9185cff567d..25c9fc28e8850 100644 --- a/lib/experimental/disable-tinymce.php +++ b/lib/experimental/disable-tinymce.php @@ -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() ) { diff --git a/lib/experimental/fonts/font-library/class-wp-font-family.php b/lib/experimental/fonts/font-library/class-wp-font-family.php index f096614427288..2897811f3b70b 100644 --- a/lib/experimental/fonts/font-library/class-wp-font-family.php +++ b/lib/experimental/fonts/font-library/class-wp-font-family.php @@ -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; diff --git a/lib/experimental/synchronization.php b/lib/experimental/synchronization.php index e4ad7333641da..87f13a7c685a5 100644 --- a/lib/experimental/synchronization.php +++ b/lib/experimental/synchronization.php @@ -1,6 +1,6 @@ apply_block_supports(); /**