diff --git a/src/wp-admin/edit-form-advanced.php b/src/wp-admin/edit-form-advanced.php
index ba78675..43dc163 100644
a
|
b
|
if ( 'post' == $post_type ) { |
269 | 269 | ); |
270 | 270 | |
271 | 271 | $title_and_editor = '<p>' . __( '<strong>Title</strong> — Enter a title for your post. After you enter a title, you’ll see the permalink below, which you can edit.' ) . '</p>'; |
272 | | $title_and_editor .= '<p>' . __( '<strong>Post editor</strong> — Enter the text for your post. There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab.' ) . '</p>'; |
| 272 | $title_and_editor .= '<p>' . __( '<strong>Post editor</strong> — Enter the text for your post. There are two modes of editing: Visual and Code. Choose the mode by clicking on the appropriate tab.' ) . '</p>'; |
273 | 273 | $title_and_editor .= '<p>' . __( 'Visual mode gives you an editor that is similar to a word processor. Click the Toolbar Toggle button to get a second row of controls.' ) . '</p>'; |
274 | | $title_and_editor .= '<p>' . __( 'The Text mode allows you to enter HTML along with your post text. Note that <p> and <br> tags are converted to line breaks when switching to the Text editor to make it less cluttered. When you type, a single line break can be used instead of typing <br>, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>'; |
| 274 | $title_and_editor .= '<p>' . __( 'The Code mode allows you to enter HTML along with your post text. Note that <p> and <br> tags are converted to line breaks when switching to the Code editor to make it less cluttered. When you type, a single line break can be used instead of typing <br>, and two line breaks instead of paragraph tags. The line breaks are converted back to tags automatically.' ) . '</p>'; |
275 | 275 | $title_and_editor .= '<p>' . __( 'You can insert media files by clicking the button above the post editor and following the directions. You can align or edit images using the inline formatting toolbar available in Visual mode.' ) . '</p>'; |
276 | 276 | $title_and_editor .= '<p>' . __( 'You can enable distraction-free writing mode using the icon to the right. This feature is not available for old browsers or devices with small screens, and requires that the full-height editor be enabled in Screen Options.' ) . '</p>'; |
277 | 277 | $title_and_editor .= '<p>' . __( 'Keyboard users: When you’re working in the visual editor, you can use <kbd>Alt + F10</kbd> to access the toolbar.' ) . '</p>'; |
… |
… |
if ( 'post' == $post_type ) { |
292 | 292 | ); |
293 | 293 | } elseif ( 'page' == $post_type ) { |
294 | 294 | $about_pages = '<p>' . __( 'Pages are similar to posts in that they have a title, body text, and associated metadata, but they are different in that they are not part of the chronological blog stream, kind of like permanent posts. Pages are not categorized or tagged, but can have a hierarchy. You can nest pages under other pages by making one the “Parent” of the other, creating a group of pages.' ) . '</p>' . |
295 | | '<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Text modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>'; |
| 295 | '<p>' . __( 'Creating a Page is very similar to creating a Post, and the screens can be customized in the same way using drag and drop, the Screen Options tab, and expanding/collapsing boxes as you choose. This screen also has the distraction-free writing space, available in both the Visual and Code modes via the Fullscreen buttons. The Page editor mostly works the same as the Post editor, but there are some Page-specific features in the Page Attributes box.' ) . '</p>'; |
296 | 296 | |
297 | 297 | get_current_screen()->add_help_tab( |
298 | 298 | array( |
diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php
index 30f38a7..db3a9a0 100644
a
|
b
|
final class _WP_Editors { |
51 | 51 | * @type string|int $tabindex Tabindex value to use. Default empty. |
52 | 52 | * @type string $tabfocus_elements The previous and next element ID to move the focus to |
53 | 53 | * when pressing the Tab key in TinyMCE. Default ':prev,:next'. |
54 | | * @type string $editor_css Intended for extra styles for both Visual and Text editors. |
| 54 | * @type string $editor_css Intended for extra styles for both Visual and Code editors. |
55 | 55 | * Should include `<style>` tags, and can use "scoped". Default empty. |
56 | 56 | * @type string $editor_class Extra classes to add to the editor textarea element. Default empty. |
57 | 57 | * @type bool $teeny Whether to output the minimal editor config. Examples include |
… |
… |
final class _WP_Editors { |
180 | 180 | |
181 | 181 | if ( self::$this_quicktags ) { |
182 | 182 | $default_editor = $set['default_editor'] ? $set['default_editor'] : wp_default_editor(); |
183 | | // 'html' is used for the "Text" editor tab. |
| 183 | // 'html' is used for the "Code" editor tab. |
184 | 184 | if ( 'html' !== $default_editor ) { |
185 | 185 | $default_editor = 'tinymce'; |
186 | 186 | } |
… |
… |
final class _WP_Editors { |
188 | 188 | $buttons .= '<button type="button" id="' . $editor_id_attr . '-tmce" class="wp-switch-editor switch-tmce"' . |
189 | 189 | ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Visual', 'Name for the Visual editor tab' ) . "</button>\n"; |
190 | 190 | $buttons .= '<button type="button" id="' . $editor_id_attr . '-html" class="wp-switch-editor switch-html"' . |
191 | | ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ) . "</button>\n"; |
| 191 | ' data-wp-editor-id="' . $editor_id_attr . '">' . _x( 'Code', 'Name for the Code editor tab (formerly Text)' ) . "</button>\n"; |
192 | 192 | } else { |
193 | 193 | $default_editor = 'tinymce'; |
194 | 194 | } |
… |
… |
final class _WP_Editors { |
266 | 266 | 'id="' . $editor_id_attr . '">%s</textarea></div>' |
267 | 267 | ); |
268 | 268 | |
269 | | // Prepare the content for the Visual or Text editor, only when TinyMCE is used (back-compat). |
| 269 | // Prepare the content for the Visual or Code editor, only when TinyMCE is used (back-compat). |
270 | 270 | if ( self::$this_tinymce ) { |
271 | 271 | add_filter( 'the_editor_content', 'format_for_editor', 10, 2 ); |
272 | 272 | } |
… |
… |
final class _WP_Editors { |
573 | 573 | if ( $set['teeny'] ) { |
574 | 574 | |
575 | 575 | /** |
576 | | * Filters the list of teenyMCE buttons (Text tab). |
| 576 | * Filters the list of teenyMCE buttons (Code tab). |
577 | 577 | * |
578 | 578 | * @since 2.7.0 |
579 | 579 | * |
… |
… |
final class _WP_Editors { |
1284 | 1284 | 'Apply' => __( 'Apply' ), // Tooltip for the 'apply' button in the inline link dialog |
1285 | 1285 | 'Link options' => __( 'Link options' ), // Tooltip for the 'link options' button in the inline link dialog |
1286 | 1286 | 'Visual' => _x( 'Visual', 'Name for the Visual editor tab' ), // Editor switch tab label |
1287 | | 'Text' => _x( 'Text', 'Name for the Text editor tab (formerly HTML)' ), // Editor switch tab label |
| 1287 | 'Code' => _x( 'Code', 'Name for the Code editor tab (formerly Text)' ), // Editor switch tab label |
1288 | 1288 | 'Add Media' => array( __( 'Add Media' ), 'accessM' ), // Tooltip for the 'Add Media' button in the Block Editor Classic block |
1289 | 1289 | |
1290 | 1290 | // Shortcuts help modal |