Skip to content

Commit

Permalink
Move wp_word_count() function to experimental directory
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Feb 17, 2023
1 parent e3417d8 commit a27741f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
/**
* New WordPress Formatting API.
*
* @package WordPress
* @package gutenberg
*/

if ( ! function_exists( 'wp_word_count' ) ) {
/**
* Count words or characters in a provided text string.
*
* @since 6.2.0
*
* @param string $text Text to count elements in.
* @param string $type The type of count. Accepts 'words', 'characters_excluding_spaces', or 'characters_including_spaces'.
* @param array $settings {
Expand Down
2 changes: 1 addition & 1 deletion lib/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ function gutenberg_is_experiment_enabled( $name ) {
require __DIR__ . '/compat/wordpress-6.2/block-editor-settings.php';
require __DIR__ . '/compat/wordpress-6.2/theme.php';
require __DIR__ . '/compat/wordpress-6.2/widgets.php';
require __DIR__ . '/compat/wordpress-6.2/formatting.php';

if ( ! class_exists( 'WP_HTML_Tag_Processor' ) ) {
require __DIR__ . '/compat/wordpress-6.2/html-api/class-wp-html-attribute-token.php';
Expand All @@ -108,6 +107,7 @@ function gutenberg_is_experiment_enabled( $name ) {
require __DIR__ . '/experimental/blocks.php';
require __DIR__ . '/experimental/navigation-theme-opt-in.php';
require __DIR__ . '/experimental/kses.php';
require __DIR__ . '/experimental/formatting.php';

// Fonts API.
if ( ! class_exists( 'WP_Fonts' ) ) {
Expand Down

0 comments on commit a27741f

Please sign in to comment.