Make WordPress Core

Ticket #31308: 31308.patch

File 31308.patch, 2.1 KB (added by ipm-frommen, 10 years ago)
  • wp-admin/includes/template.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    406406 *
    407407 * @since 2.7.0
    408408 *
    409  * @param int $position
    410  * @param bool $checkbox
     409 * @param int    $position
     410 * @param bool   $checkbox
    411411 * @param string $mode
    412  * @param bool $table_row
     412 * @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        /**
    417417         * Filter the in-line comment reply-to form output in the Comments
     
    843843 *
    844844 * @since 2.1.0
    845845 *
    846  * @param string $selected slug for the role that should be already selected
     846 * @param string $selected Slug for the role that should be already selected.
    847847 */
    848 function wp_dropdown_roles( $selected = false ) {
     848function wp_dropdown_roles( $selected = '' ) {
    849849        $p = '';
    850850        $r = '';
    851851
     
    853853
    854854        foreach ( $editable_roles as $role => $details ) {
    855855                $name = translate_user_role($details['name'] );
    856                 if ( $selected == $role ) // preselect specified role
     856                if ( $selected === $role ) // preselect specified role
    857857                        $p = "\n\t<option selected='selected' value='" . esc_attr($role) . "'>$name</option>";
    858858                else
    859859                        $r .= "\n\t<option value='" . esc_attr($role) . "'>$name</option>";
     
    18141814 *                     Defaults to no other attributes. Other attributes can also be provided as a
    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 );
    18201820