PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | application/views/fields_edit/RAW.php +5 -2 1.5.3 → 1.5.9 View file →
@@ -52,7 +52,10 @@
52 52 </div>
53 53
54 54 <script>
55 55 jQuery(document).ready(function($) {
56 - wp.codeEditor.initialize($('#<?php echo esc_js($field_id);?>' ));
57 -})
56 + var editorElem = $('#<?php echo esc_js($field_id);?>');
57 + if (editorElem.length && typeof wp !== 'undefined' && wp.codeEditor && typeof wp.codeEditor.initialize === 'function') {
58 + wp.codeEditor.initialize(editorElem[0], {});
59 + }
60 +});
58 61 </script>