Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/23/2015 03:13:49 PM (10 years ago)
Author:
johnjamesjacoby
Message:

The esc_url() function does an adequate job of preparing URLs for output to the browser; there is no need to also call esc_attr() on the results. Fixes #6390.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-walker-nav-menu.php

    r9585 r9791  
    182182
    183183        // Add href attribute
    184         $attributes = ! empty( $item->link ) ? ' href="' . esc_attr( esc_url( $item->link ) ) . '"' : '';
     184        $attributes = ! empty( $item->link ) ? ' href="' . esc_url( $item->link ) . '"' : '';
    185185
    186186        // Construct the link
Note: See TracChangeset for help on using the changeset viewer.