Make WordPress Core


Ignore:
Timestamp:
09/14/2015 01:00:31 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Escape class attribute in edit_post_link() after [34098].

Props Offereins.
See #30563.

File:
1 edited

Legend:

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

    r34115 r34117  
    12271227    }
    12281228
    1229     $link = '<a class="' . $class . '" href="' . $url . '">' . $text . '</a>';
     1229    $link = '<a class="' . esc_attr( $class ) . '" href="' . $url . '">' . $text . '</a>';
    12301230
    12311231    /**
Note: See TracChangeset for help on using the changeset viewer.