Make WordPress Core


Ignore:
Timestamp:
04/07/2014 09:29:04 PM (11 years ago)
Author:
DrewAPicture
Message:

Improve inline documentation for functionality in wp-includes/plugin.php added in 3.9.

See #14994, #27700.

File:
1 edited

Legend:

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

    r27999 r28010  
    329329 *
    330330 * @since 3.9.0
     331 *
    331332 * @uses current_filter()
    332333 *
     
    341342 *
    342343 * The function current_filter() only returns the most recent filter or action
    343  * being executed.  did_action() returns true once the action is initially
    344  * processed.  This function allows detection for any filter currently being
     344 * being executed. did_action() returns true once the action is initially
     345 * processed. This function allows detection for any filter currently being
    345346 * executed (despite not being the most recent filter to fire, in the case of
    346347 * hooks called from hook callbacks) to be verified.
    347348 *
    348349 * @since 3.9.0
     350 *
    349351 * @see current_filter()
    350352 * @see did_action()
    351  *
    352  * @param string $filter Optional. Filter to check. Defaults to null, which checks if any filter is currently being run.
    353  *
    354  * @global array $wp_current_filter
    355  *
     353 * @global array $wp_current_filter Current filter.
     354 *
     355 * @param null|string $filter Optional. Filter to check. Defaults to null, which
     356 *                            checks if any filter is currently being run.
    356357 * @return bool Whether the filter is currently in the stack
    357358 */
     
    370371 *
    371372 * @since 3.9.0
     373 *
    372374 * @uses doing_filter()
    373375 *
    374  * @param string $action Optional. Action to check. Defaults to null, which checks if any action is currently being run.
    375  *
     376 * @param string|null $action Optional. Action to check. Defaults to null, which checks
     377 *                            if any action is currently being run.
    376378 * @return bool Whether the action is currently in the stack.
    377379 */
Note: See TracChangeset for help on using the changeset viewer.