Make WordPress Core


Ignore:
Timestamp:
05/23/2016 07:00:41 PM (10 years ago)
Author:
DrewAPicture
Message:

Docs: Apply inline @see tags to hooks referenced in DocBlocks in a variety of wp-includes/* files.

Applying these specially-crafted @see tags allows the Code Reference parser to recognize and link these elements as actions and filters.

See #36921.

File:
1 edited

Legend:

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

    r37510 r37543  
    23192319     *
    23202320     * This filter should be used to add, not remove, mime types. To remove
    2321      * mime types, use the 'upload_mimes' filter.
     2321     * mime types, use the {@see 'upload_mimes'} filter.
    23222322     *
    23232323     * @since 3.5.0
     
    25922592
    25932593/**
    2594  * Kill WordPress execution and display HTML message with error message.
     2594 * Kills WordPress execution and display HTML message with error message.
    25952595 *
    25962596 * This is the default handler for wp_die if you want a custom one for your
    2597  * site then you can overload using the wp_die_handler filter in wp_die
     2597 * site then you can overload using the {@see 'wp_die_handler'} filter in wp_die().
    25982598 *
    25992599 * @since 3.0.0
     
    36313631 * Mark a function as deprecated and inform when it has been used.
    36323632 *
    3633  * There is a hook deprecated_function_run that will be called that can be used
     3633 * There is a {@see 'hook deprecated_function_run'} that will be called that can be used
    36343634 * to get the backtrace up to what file and function called the deprecated
    36353635 * function.
    36363636 *
    3637  * The current behavior is to trigger a user error if WP_DEBUG is true.
     3637 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
    36383638 *
    36393639 * This function is to be used in every function that is deprecated.
     
    37513751 * Mark a file as deprecated and inform when it has been used.
    37523752 *
    3753  * There is a hook deprecated_file_included that will be called that can be used
     3753 * There is a hook {@see 'deprecated_file_included'} that will be called that can be used
    37543754 * to get the backtrace up to what file and function included the deprecated
    37553755 * file.
    37563756 *
    3757  * The current behavior is to trigger a user error if WP_DEBUG is true.
     3757 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
    37583758 *
    37593759 * This function is to be used in every file that is deprecated.
     
    38683868 * Mark something as being incorrectly called.
    38693869 *
    3870  * There is a hook doing_it_wrong_run that will be called that can be used
     3870 * There is a hook {@see 'doing_it_wrong_run'} that will be called that can be used
    38713871 * to get the backtrace up to what file and function called the deprecated
    38723872 * function.
    38733873 *
    3874  * The current behavior is to trigger a user error if WP_DEBUG is true.
     3874 * The current behavior is to trigger a user error if `WP_DEBUG` is true.
    38753875 *
    38763876 * @since 3.1.0
     
    45734573 * @param string $file            Path to the file.
    45744574 * @param array  $default_headers List of headers, in the format array('HeaderKey' => 'Header Name').
    4575  * @param string $context         Optional. If specified adds filter hook "extra_{$context}_headers".
     4575 * @param string $context         Optional. If specified adds filter hook {@see 'extra_$context_headers'}.
    45764576 *                                Default empty.
    45774577 * @return array Array of file headers in `HeaderKey => Header Value` format.
     
    49934993 *
    49944994 * This is disabled for certain screens where a login screen could cause an
    4995  * inconvenient interruption. A filter called wp_auth_check_load can be used
     4995 * inconvenient interruption. A filter called {@see 'wp_auth_check_load'} can be used
    49964996 * for fine-grained control.
    49974997 *
Note: See TracChangeset for help on using the changeset viewer.