Make WordPress Core

Changeset 44841


Ignore:
Timestamp:
03/12/2019 10:26:13 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Formatting: Improve rel="nofollow" handling in comments.

Merges [44833] to the 4.4 branch.

Location:
branches/4.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.4

  • branches/4.4/src/wp-includes/formatting.php

    r37810 r44841  
    23572357        $html = '';
    23582358        foreach ( $atts as $name => $value ) {
    2359             $html .= "{$name}=\"$value\" ";
     2359            $html .= "{$name}=\"" . esc_attr( $value ) . "\" ";
    23602360        }
    23612361        $text = trim( $html );
    23622362    }
    2363     return "<a $text rel=\"$rel\">";
     2363    return "<a $text rel=\"" . esc_attr( $rel ) . "\">";
    23642364}
    23652365
Note: See TracChangeset for help on using the changeset viewer.