Skip to:
Content

BuddyPress.org

Changeset 4308


Ignore:
Timestamp:
04/29/2011 11:36:02 PM (14 years ago)
Author:
djpaul
Message:

Fix path to generic admin menu icon in certain types of installs. Fixes #3115

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r4254 r4308  
    847847
    848848    if ( empty( $icon_url ) )
    849         $icon_url = 'images/generic.png';
    850     elseif ( is_ssl() && 0 === strpos( $icon_url, 'http://' ) )
    851         $icon_url = 'https://' . substr( $icon_url, 7 );
     849        $icon_url = esc_url( admin_url( 'images/generic.png' ) );
     850    elseif ( is_ssl() && 0 === strpos($icon_url, 'http://') )
     851        $icon_url = 'https://' . substr($icon_url, 7);
    852852
    853853    do {
Note: See TracChangeset for help on using the changeset viewer.