Make WordPress Core


Ignore:
Timestamp:
07/14/2020 11:54:26 AM (4 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs for parameters that accept a callback function.

See #49572

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r48440 r48473  
    41504150
    41514151/**
    4152  * Checks that a JSONP callback is a valid JavaScript callback.
     4152 * Checks that a JSONP callback is a valid JavaScript callback name.
    41534153 *
    41544154 * Only allows alphanumeric characters and the dot character in callback
     
    41584158 * @since 4.6.0
    41594159 *
    4160  * @param string $callback Supplied JSONP callback function.
    4161  * @return bool True if valid callback, otherwise false.
     4160 * @param string $callback Supplied JSONP callback function name.
     4161 * @return bool Whether the callback function name is valid.
    41624162 */
    41634163function wp_check_jsonp_callback( $callback ) {
Note: See TracChangeset for help on using the changeset viewer.