WordPress.org

Make WordPress Core

#45127 closed task (blessed) (fixed)

Extract the code editor settings from wp_enqueue_code_editor()

Reported by: pento Owned by: pento
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Editor Keywords: fixed-5.0
Focuses: Cc:
PR Number:

Description

The block editor needs grab just the code editor settings, without enqueueing the code editor scripts.

Splitting wp_enqueue_code_editor() up into two functions will allow this.

Change History (3)

#1 @pento
13 months ago

In 43761:

General: Extract the code editor settings from wp_enqueue_code_editor().

They're now returned by a new function, wp_get_code_editor_settings(), so they can be reused by the block editor.

See #45127.

#2 @pento
13 months ago

  • Keywords fixed-5.0 added

#3 @desrosj
11 months ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 44121:

General: Extract the code editor settings from wp_enqueue_code_editor().

They're now returned by a new function, wp_get_code_editor_settings(), so they can be reused by the block editor.

Props pento.

Merges [43761] to trunk.

Fixes #45127.

Note: See TracTickets for help on using tickets.