Make WordPress Core

Ticket #42109: 42109-working.diff

File 42109-working.diff, 700 bytes (added by tharsheblows, 6 years ago)

php autocomplete working

  • src/wp-admin/js/code-editor.js

     
    284284                                                ' ' === event.key && /:\s+$/.test( lineBeforeCursor );
    285285                                } else if ( 'javascript' === innerMode ) {
    286286                                        shouldAutocomplete = isAlphaKey || '.' === event.key;
    287                                 } else if ( 'clike' === innerMode && 'application/x-httpd-php' === codemirror.options.mode ) {
     287                                } else if ( 'clike' === innerMode && 'php' === codemirror.options.mode ) {
    288288                                        shouldAutocomplete = 'keyword' === token.type || 'variable' === token.type;
    289289                                }
    290290                                if ( shouldAutocomplete ) {