diff --git a/src/wp-admin/js/code-editor.js b/src/wp-admin/js/code-editor.js index 884ead1c2a..ac78a52bdf 100644 --- a/src/wp-admin/js/code-editor.js +++ b/src/wp-admin/js/code-editor.js @@ -25,14 +25,6 @@ if ( 'undefined' === typeof window.wp.codeEditor ) { onUpdateErrorNotice: function() {} }; - /** - * All instances of code editors. - * - * @since 4.9.0 - * @type {Array.} - */ - wp.codeEditor.instances = []; - /** * Configure linting. * @@ -252,9 +244,6 @@ if ( 'undefined' === typeof window.wp.codeEditor ) { codemirror: codemirror }; - // Keep track of the instances that have been created. - wp.codeEditor.instances.push( instance ); - if ( codemirror.showHint ) { codemirror.on( 'keyup', function( editor, event ) { // eslint-disable-line complexity var shouldAutocomplete, isAlphaKey = /^[a-zA-Z]$/.test( event.key ), lineBeforeCursor, innerMode, token;