WordPress.org

Make WordPress Core

Changeset 29399


Ignore:
Timestamp:
08/06/2014 07:50:35 AM (7 years ago)
Author:
nacin
Message:

Escape late in get_avatar().

Merges [29397] to the 3.8 branch.

Location:
branches/3.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.8

  • branches/3.8/src/wp-includes/pluggable.php

    r29386 r29399  
    17561756        $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo' height='{$size}' width='{$size}' />";
    17571757    } else {
    1758         $avatar = "<img alt='{$safe_alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
     1758        $out = esc_url( $default );
     1759        $avatar = "<img alt='{$safe_alt}' src='{$out}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
    17591760    }
    17601761
Note: See TracChangeset for help on using the changeset viewer.