Make WordPress Core


Ignore:
Timestamp:
09/07/2010 11:21:11 AM (15 years ago)
Author:
nacin
Message:

Phpdoc argument/@param cleanups. props duck_, see #14783.

File:
1 edited

Legend:

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

    r15555 r15590  
    713713
    714714/**
    715  * Print out <option> html elements for role selectors based on $wp_roles
    716  *
    717  * @package WordPress
    718  * @subpackage Administration
     715 * Print out <option> html elements for role selectors
     716 *
    719717 * @since 2.1
    720718 *
    721  * @uses $wp_roles
    722  * @param string $default slug for the role that should be already selected
     719 * @param string $selected slug for the role that should be already selected
    723720 */
    724721function wp_dropdown_roles( $selected = false ) {
     
    730727    foreach ( $editable_roles as $role => $details ) {
    731728        $name = translate_user_role($details['name'] );
    732         if ( $selected == $role ) // Make default first in list
     729        if ( $selected == $role ) // preselect specified role
    733730            $p = "\n\t<option selected='selected' value='" . esc_attr($role) . "'>$name</option>";
    734731        else
     
    12691266 * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
    12701267 * @param boolean $hide_on_update If set to true errors will not be shown if the settings page has already been submitted.
    1271  * @return <type>
    1272  */
    1273 function settings_errors ( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
     1268 */
     1269function settings_errors( $setting = '', $sanitize = FALSE, $hide_on_update = FALSE ) {
    12741270
    12751271    if ($hide_on_update AND $_GET['updated']) return;
     
    14941490 *
    14951491 * @since 2.7.0
    1496  * @param int $id The post id. If not supplied the global $post is used.
    1497  *
    1498  */
    1499 function _draft_or_post_title($post_id = 0) {
     1492 * @param int $post_id The post id. If not supplied the global $post is used.
     1493 * @return string The post title if set
     1494 */
     1495function _draft_or_post_title( $post_id = 0 ) {
    15001496    $title = get_the_title($post_id);
    15011497    if ( empty($title) )
Note: See TracChangeset for help on using the changeset viewer.