Commit 7fdd5ebe4b for wordpress.org
commit 7fdd5ebe4bbcf9e92d7f85ae662efabc936f4235
Author: afercia <afercia@git.wordpress.org>
Date: Fri Oct 9 11:14:48 2026 +0000
Editor: Restore the Classic Block (TinyMCE) elementpath UI.
The elements path shown in the TinyMCE status bar is a useful tool that helps users with understanding what the current element in the TinyMCE canvas is and allows for easier selection of the elements. It shows the current element, the nesting of the elements, etc.
When the Classic Block in the Block Editor was rendered 'inline' in the canvas, the elementpath UI didn't make much sense and was somewhat obtrusive. Now that the Classic Block is rendered within a modal dialog there is no longer a reason to disable the elementpath UI.
With this change the elementpath UI is enabled again, also in the Text widget in the 'Classic' Widgets page and wherever plugins / themes initialize TinyMCE by using `wp_enqueue_editor()`.
Developed in https://github.com/WordPress/wordpress-develop/pull/14133
Fixes #58260.
Built from https://develop.svn.wordpress.org/trunk@64254
git-svn-id: http://core.svn.wordpress.org/trunk@63405 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php
index 5709dd2ef5..9a282348d6 100644
--- a/wp-includes/class-wp-editor.php
+++ b/wp-includes/class-wp-editor.php
@@ -940,10 +940,9 @@ final class _WP_Editors {
if ( $user_can_richedit ) {
$settings = self::default_settings();
- $settings['toolbar1'] = 'bold,italic,bullist,numlist,link';
- $settings['wpautop'] = false;
- $settings['indent'] = true;
- $settings['elementpath'] = false;
+ $settings['toolbar1'] = 'bold,italic,bullist,numlist,link';
+ $settings['wpautop'] = false;
+ $settings['indent'] = true;
if ( is_rtl() ) {
$settings['directionality'] = 'rtl';
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 73956434d6..004cc7e79e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-64253';
+$wp_version = '7.2-alpha-64254';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.