WordPress.org

Make WordPress Core

Changeset 25829


Ignore:
Timestamp:
10/17/2013 05:59:54 AM (8 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/options-discussion.php.

Props siobhyb, ericlewis.
Fixes #25453.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-discussion.php

    r25616 r25829  
    66 * @subpackage Administration
    77 */
    8 
    98/** WordPress Administration Bootstrap */
    109require_once( dirname( __FILE__ ) . '/admin.php' );
     
    7877<input name="thread_comments" type="checkbox" id="thread_comments" value="1" <?php checked('1', get_option('thread_comments')); ?> />
    7978<?php
    80 
     79/**
     80 * Filter the maximum depth of threaded/nested comments.
     81 *
     82 * @since 2.7.0.
     83 *
     84 * @param int $10 The maximum depth of threaded comments. Default 10.
     85 */
    8186$maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 );
    8287
     
    220225    'retro' => __('Retro (Generated)')
    221226);
    222 $avatar_defaults = apply_filters('avatar_defaults', $avatar_defaults);
     227/**
     228 * Filter the default avatars.
     229 *
     230 * Avatars are stored in key/value pairs, where the key is option value,
     231 * and the name is the displayed avatar name.
     232 *
     233 * @since 2.6.0
     234 *
     235 * @param array $avatar_defaults Array of default avatars.
     236 */
     237$avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );
    223238$default = get_option('avatar_default');
    224239if ( empty($default) )
     
    236251    $avatar_list .= '<br />';
    237252}
    238 echo apply_filters('default_avatar_select', $avatar_list);
     253/**
     254 * Filter the HTML output of the default avatar list.
     255 *
     256 * @since 2.6.0
     257 *
     258 * @param string $avatar_list HTML markup of the avatar list.
     259 */
     260echo apply_filters( 'default_avatar_select', $avatar_list );
    239261?>
    240262
Note: See TracChangeset for help on using the changeset viewer.