[wp-trac] [WordPress Trac] #47769: Add autocomplete support in code editor for php mode

WordPress Trac noreply at wordpress.org
Wed Jul 24 17:39:43 UTC 2019


#47769: Add autocomplete support in code editor for php mode
----------------------------+-----------------------------------------
 Reporter:  ediamin         |       Owner:  (none)
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  5.3
Component:  Administration  |     Version:  4.9
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  javascript, administration
----------------------------+-----------------------------------------

Comment (by SergeyBiryukov):

 Hi @ediamin, welcome to WordPress Trac!

 Thanks for the patch, it works as expected in my testing.

 Since [source:tags/5.2.2/src/wp-includes/general-
 template.php?marks=3670-3682#L3663 wp_get_code_editor_settings()]
 explicitly sets `mode` to `'php'` when `$type` is `'application/x-httpd-
 php'`, I think it's safe to just replace `application/x-httpd-php` with
 `php` here.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47769#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list