Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#45127 closed task (blessed) (fixed)

Extract the code editor settings from wp_enqueue_code_editor()

Reported by: pento's profile pento Owned by: pento's profile pento
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Editor Keywords: fixed-5.0
Focuses: Cc:

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
7 years 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
7 years ago

  • Keywords fixed-5.0 added

#3 @desrosj
6 years 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.