Make WordPress Core


Ignore:
Timestamp:
11/13/2017 09:20:01 PM (7 years ago)
Author:
westonruter
Message:

Customize: Allow notifications for linting errors in code editor control (for Additional CSS) to be overridden to allow saving.

Implements the same override that was implemented in [41721] for the theme/plugin editors.

See #41897, #41887.
Fixes #42528 for 4.9.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-includes/class-wp-customize-manager.php

    r42122 r42172  
    41264126        </script>
    41274127
     4128        <script type="text/html" id="tmpl-customize-code-editor-lint-error-notification">
     4129            <li class="notice notice-{{ data.type || 'info' }} {{ data.alt ? 'notice-alt' : '' }} {{ data.dismissible ? 'is-dismissible' : '' }} {{ data.containerClasses || '' }}" data-code="{{ data.code }}" data-type="{{ data.type }}">
     4130                <div class="notification-message">{{{ data.message || data.code }}}</div>
     4131
     4132                <p>
     4133                    <# var elementId = 'el-' + String( Math.random() ); #>
     4134                    <input id="{{ elementId }}" type="checkbox">
     4135                    <label for="{{ elementId }}"><?php _e( 'Update anyway, even though it might break your site?' ); ?></label>
     4136                </p>
     4137            </li>
     4138        </script>
     4139
    41284140        <?php
    41294141        /* The following template is obsolete in core but retained for plugins. */
Note: See TracChangeset for help on using the changeset viewer.