WordPress.org

Make WordPress Core

Changeset 13076


Ignore:
Timestamp:
02/13/10 02:54:54 (4 years ago)
Author:
nacin
Message:

Fix inline documentation for esc_js(). Intended for inline JS only, fixes #11690.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r12957 r13076  
    23012301 * Escape single quotes, htmlspecialchar " < > &, and fix line endings. 
    23022302 * 
    2303  * Escapes text strings for echoing in JS, both inline (for example in onclick="...") 
    2304  * and inside <script> tag. Note that the strings have to be in single quotes. 
    2305  * The filter 'js_escape' is also applied here. 
     2303 * Escapes text strings for echoing in JS. It is intended to be used for inline JS 
     2304 * (in a tag attribute, for example onclick="..."). Note that the strings have to 
     2305 * be in single quotes. The filter 'js_escape' is also applied here. 
    23062306 * 
    23072307 * @since 2.8.0 
Note: See TracChangeset for help on using the changeset viewer.