Make WordPress Core

Changeset 27375


Ignore:
Timestamp:
03/03/2014 05:19:31 PM (12 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/misc.php.

Props JoshuaAbenazer.
Fixes #26186

File:
1 edited

Legend:

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

    r27323 r27375  
    2828         * @param bool $got_rewrite Whether Apache and mod_rewrite are present.
    2929         */
    30         return apply_filters('got_rewrite', $got_rewrite);
     30        return apply_filters( 'got_rewrite', $got_rewrite );
    3131}
    3232
     
    335335        $functions = array_unique( $functions );
    336336        sort( $functions );
     337
     338        /**
     339         * Filter the list of functions/classes to be ignored from the documentation lookup.
     340         *
     341         * @since 2.8.0
     342         *
     343         * @param array $ignore_functions Functions/Classes to be ignored.
     344         */
    337345        $ignore_functions = apply_filters( 'documentation_ignore_functions', $ignore_functions );
     346
    338347        $ignore_functions = array_unique( $ignore_functions );
    339348
     
    352361 *
    353362 * @since 2.8.0
    354 **/
     363 */
    355364function set_screen_options() {
    356365
     
    395404                                break;
    396405                        default:
    397                                 $value = apply_filters('set-screen-option', false, $option, $value);
     406
     407                                /**
     408                                 * Filter the default of number of rows value to use for item listings.
     409                                 *
     410                                 * @since 2.8.0
     411                                 *
     412                                 * @param bool|int $value  The number of rows value. Default false.
     413                                 * @param string   $option The option name.
     414                                 * @param int      $value  The number of rows to use.
     415                                 */
     416                                $value = apply_filters( 'set-screen-option', false, $option, $value );
     417
    398418                                if ( false === $value )
    399419                                        return;
Note: See TracChangeset for help on using the changeset viewer.