Make WordPress Core

Changeset 41379


Ignore:
Timestamp:
09/14/2017 07:28:57 PM (7 years ago)
Author:
adamsilverstein
Message:

wp.sanitize - fix namespace for calls to stripTags.

Fixes an undefined JavaScript error in PressThis since [41061].

Props afercia.
Fixes #41883.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/wp-sanitize.js

    r41061 r41379  
    3434         */
    3535        sanitizeText: function( text ) {
    36             var _text = wp.utils.stripTags( text ),
     36            var _text = wp.sanitize.stripTags( text ),
    3737                textarea = document.createElement( 'textarea' );
    3838
    3939            try {
    4040                textarea.innerHTML = _text;
    41                 _text = wp.utils.stripTags( textarea.value );
     41                _text = wp.sanitize.stripTags( textarea.value );
    4242            } catch ( er ) {}
    4343
Note: See TracChangeset for help on using the changeset viewer.