Make WordPress Core

Changeset 32628


Ignore:
Timestamp:
05/27/2015 10:03:52 PM (10 years ago)
Author:
wonderboymusic
Message:

Add missing doc blocks to template.php.

See #32444.

File:
1 edited

Legend:

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

    r32298 r32628  
    1717 * @since 1.5.0
    1818 *
    19  * @param string $type Filename without extension.
    20  * @param array $templates An optional list of template candidates
     19 * @param string $type      Filename without extension.
     20 * @param array  $templates An optional list of template candidates
    2121 * @return string Full path to template file.
    2222 */
     
    400400 * @see get_query_template()
    401401 *
     402 * @global array $posts
     403 *
    402404 * @return string Full path to attachment template file.
    403405 */
     
    456458 *
    457459 * @param string|array $template_names Template file(s) to search for, in order.
    458  * @param bool $load If true the template file will be loaded if it is found.
    459  * @param bool $require_once Whether to require_once or require. Default true. Has no effect if $load is false.
     460 * @param bool         $load          If true the template file will be loaded if it is found.
     461 * @param bool         $require_once  Whether to require_once or require. Default true. Has no effect if $load is false.
    460462 * @return string The template filename if one is located.
    461463 */
     
    489491 * @since 1.5.0
    490492 *
     493 * @global array      $posts
     494 * @global WP_Post    $post
     495 * @global bool       $wp_did_header
     496 * @global WP_Query   $wp_query
     497 * @global WP_Rewrite $wp_rewrite
     498 * @global wpdb       $wpdb
     499 * @global string     $wp_version
     500 * @global WP         $wp
     501 * @global int        $id
     502 * @global object     $comment
     503 * @global int        $user_ID
     504 *
    491505 * @param string $_template_file Path to template file.
    492  * @param bool $require_once Whether to require_once or require. Default true.
     506 * @param bool   $require_once  Whether to require_once or require. Default true.
    493507 */
    494508function load_template( $_template_file, $require_once = true ) {
Note: See TracChangeset for help on using the changeset viewer.