Make WordPress Core


Ignore:
Timestamp:
05/29/2015 08:16:22 PM (10 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to wp-admin/includes/*.
Fix some egregious uses of tabbing.
Some functions can simply return apply_filters(...) instead of setting a variable that is immediately returned.

See #32444.

File:
1 edited

Legend:

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

    r32653 r32654  
    439439 * @global WP_List_Table $wp_list_table
    440440 *
    441  * @param int $position
    442  * @param bool $checkbox
     441 * @param int    $position
     442 * @param bool   $checkbox
    443443 * @param string $mode
    444  * @param bool $table_row
     444 * @param bool   $table_row
    445445 */
    446446function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $table_row = true ) {
     
    10391039 *
    10401040 * @staticvar bool $already_sorted
    1041  * @param string|WP_Screen $screen Screen identifier
    1042  * @param string $context box context
    1043  * @param mixed $object gets passed to the box callback function as first parameter
     1041 * @param string|WP_Screen $screen  Screen identifier
     1042 * @param string           $context box context
     1043 * @param mixed            $object gets passed to the box callback function as first parameter
    10441044 * @return int number of meta_boxes
    10451045 */
     
    11081108 * @global array $wp_meta_boxes
    11091109 *
    1110  * @param string $id String for use in the 'id' attribute of tags.
    1111  * @param string|object $screen The screen on which to show the box (post, page, link).
    1112  * @param string $context The context within the page where the boxes should show ('normal', 'advanced').
     1110 * @param string        $id      String for use in the 'id' attribute of tags.
     1111 * @param string|object $screen  The screen on which to show the box (post, page, link).
     1112 * @param string        $context The context within the page where the boxes should show ('normal', 'advanced').
    11131113 */
    11141114function remove_meta_box($id, $screen, $context) {
     
    11441144 * @uses global $wp_meta_boxes Used to retrieve registered meta boxes.
    11451145 *
    1146  * @param string|object $screen The screen identifier.
    1147  * @param string $context The meta box context.
    1148  * @param mixed $object gets passed to the section callback function as first parameter.
     1146 * @param string|object $screen  The screen identifier.
     1147 * @param string        $context The meta box context.
     1148 * @param mixed         $object gets passed to the section callback function as first parameter.
    11491149 * @return int number of meta boxes as accordion sections.
    11501150 */
     
    12221222 * @global $wp_settings_sections Storage array of all settings sections added to admin pages
    12231223 *
    1224  * @param string $id Slug-name to identify the section. Used in the 'id' attribute of tags.
    1225  * @param string $title Formatted title of the section. Shown as the heading for the section.
     1224 * @param string $id       Slug-name to identify the section. Used in the 'id' attribute of tags.
     1225 * @param string $title    Formatted title of the section. Shown as the heading for the section.
    12261226 * @param string $callback Function that echos out any content at the top of the section (between heading and fields).
    1227  * @param string $page The slug-name of the settings page on which to show the section. Built-in pages include 'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using add_options_page();
     1227 * @param string $page     The slug-name of the settings page on which to show the section. Built-in pages include 'general', 'reading', 'writing', 'discussion', 'media', etc. Create your own using add_options_page();
    12281228 */
    12291229function add_settings_section($id, $title, $callback, $page) {
     
    17011701}
    17021702
     1703/**
     1704 *
     1705 * @param WP_Post $post
     1706 */
    17031707function _post_states($post) {
    17041708    $post_states = array();
     
    17511755}
    17521756
     1757/**
     1758 *
     1759 * @param WP_Post $post
     1760 */
    17531761function _media_states( $post ) {
    17541762    $media_states = array();
Note: See TracChangeset for help on using the changeset viewer.