Make WordPress Core

Changeset 25151


Ignore:
Timestamp:
08/28/2013 05:27:03 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Make sure $args is an array before treating it as such. fixes #25151 for trunk.

File:
1 edited

Legend:

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

    r25136 r25151  
    16071607    $user_identity = $user->exists() ? $user->display_name : '';
    16081608
     1609    $args = wp_parse_args( $args );
    16091610    if ( ! isset( $args['format'] ) )
    16101611        $args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';
Note: See TracChangeset for help on using the changeset viewer.