Ticket #31469: miqro-31469.diff
File miqro-31469.diff, 2.5 KB (added by , 10 years ago) |
---|
-
src/wp-includes/link-template.php
3422 3422 * @param array $args { 3423 3423 * Optional. Arguments to return instead of the default arguments. 3424 3424 * 3425 * @type int $size Height and width of the avatar in pixels. Default 96. 3425 * @type int $size Height and width of the avatar image file in pixels. Default 96. 3426 * @type int $height Display height of the avatar in pixels. Default 96. 3427 * @type int $width Display width of the avatar in pixels. Default 96. 3426 3428 * @type string $default URL for the default image or a default type. Accepts '404' (return 3427 3429 * a 404 instead of a default image), 'retro' (8bit), 'monsterid' (monster), 3428 3430 * 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm', … … 3449 3451 function get_avatar_data( $id_or_email, $args = null ) { 3450 3452 $args = wp_parse_args( $args, array( 3451 3453 'size' => 96, 3454 'height' => 96, 3455 'width' => 96, 3452 3456 'default' => get_option( 'avatar_default', 'mystery' ), 3453 3457 'force_default' => false, 3454 3458 'rating' => get_option( 'avatar_rating' ), … … 3465 3469 $args['size'] = 96; 3466 3470 } 3467 3471 3472 if ( is_numeric( $args['height'] ) ) { 3473 $args['height'] = absint( $args['height'] ); 3474 if ( ! $args['height'] ) { 3475 $args['height'] = 96; 3476 } 3477 } else { 3478 $args['height'] = 96; 3479 } 3480 3481 if ( is_numeric( $args['width'] ) ) { 3482 $args['width'] = absint( $args['width'] ); 3483 if ( ! $args['width'] ) { 3484 $args['width'] = 96; 3485 } 3486 } else { 3487 $args['width'] = 96; 3488 } 3489 3468 3490 if ( empty( $args['default'] ) ) { 3469 3491 $args['default'] = get_option( 'avatar_default', 'mystery' ); 3470 3492 } -
src/wp-includes/pluggable.php
2143 2143 } 2144 2144 2145 2145 $args['size'] = $size; 2146 $args['width'] = $size; 2147 $args['height'] = $size; 2146 2148 $args['default'] = $default; 2147 2149 $args['alt'] = $alt; 2148 2150 … … 2197 2199 esc_attr( $args['alt'] ), 2198 2200 esc_url( $url ), 2199 2201 esc_attr( join( ' ', $class ) ), 2200 (int) $args[' size'],2201 (int) $args[' size']2202 (int) $args['height'], 2203 (int) $args['width'] 2202 2204 ); 2203 2205 2204 2206 /**