Make WordPress Core


Ignore:
Timestamp:
02/13/2015 06:50:49 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Use correct default values for some admin template functions.

props ipm-frommen.
fixes #31308.

File:
1 edited

Legend:

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

    r31443 r31446  
    412412 * @param bool $table_row
    413413 */
    414 function wp_comment_reply($position = '1', $checkbox = false, $mode = 'single', $table_row = true) {
     414function wp_comment_reply( $position = 1, $checkbox = false, $mode = 'single', $table_row = true ) {
    415415    global $wp_list_table;
    416416    /**
     
    844844 * @since 2.1.0
    845845 *
    846  * @param string $selected slug for the role that should be already selected
    847  */
    848 function wp_dropdown_roles( $selected = false ) {
     846 * @param string $selected Slug for the role that should be already selected.
     847 */
     848function wp_dropdown_roles( $selected = '' ) {
    849849    $p = '';
    850850    $r = '';
     
    18151815 *                     string such as 'tabindex="1"', though the array format is typically cleaner.
    18161816 */
    1817 function get_submit_button( $text = null, $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = null ) {
     1817function get_submit_button( $text = '', $type = 'primary large', $name = 'submit', $wrap = true, $other_attributes = '' ) {
    18181818    if ( ! is_array( $type ) )
    18191819        $type = explode( ' ', $type );
Note: See TracChangeset for help on using the changeset viewer.