Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/15/2009 07:43:18 AM (17 years ago)
Author:
apeatling
Message:

Removed all references to deprecated MUPLUGINDIR and replaced with WPMU_PLUGIN_DIR and WPMU_PLUGIN_URL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-cssjs.php

    r1052 r1209  
    99function xprofile_add_css() {
    1010    if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' )
    11         wp_enqueue_style( 'bp-xprofile-signup', site_url( MUPLUGINDIR . '/bp-xprofile/css/signup.css' ) ); 
     11        wp_enqueue_style( 'bp-xprofile-signup', WPMU_PLUGIN_URL . '/bp-xprofile/css/signup.css' ); 
    1212   
    1313    wp_print_styles();
     
    1717function xprofile_add_structure_css() {
    1818    /* Enqueue the structure CSS file to give basic positional formatting for xprofile pages */
    19     wp_enqueue_style( 'bp-xprofile-structure', site_url( MUPLUGINDIR . '/bp-xprofile/css/structure.css' ) );   
     19    wp_enqueue_style( 'bp-xprofile-structure', WPMU_PLUGIN_URL . '/bp-xprofile/css/structure.css' );   
    2020}
    2121add_action( 'bp_styles', 'xprofile_add_structure_css' );
     
    2323function xprofile_add_admin_css() {
    2424    if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {
    25         echo '<link rel="stylesheet" href="' . site_url( MUPLUGINDIR . '/bp-xprofile/css/admin.css' ) . '" type="text/css" />';
     25        echo '<link rel="stylesheet" href="' . WPMU_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />';
    2626    }
    2727}
     
    3030function xprofile_add_admin_js() {
    3131    if ( strpos( $_GET['page'], 'xprofile' ) !== false )
    32         echo '<script type="text/javascript" src="' . site_url( MUPLUGINDIR . '/bp-xprofile/js/admin.js' ) . '"></script>';
     32        echo '<script type="text/javascript" src="' . WPMU_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>';
    3333}
    3434add_action( 'admin_head', 'xprofile_add_admin_js' );
Note: See TracChangeset for help on using the changeset viewer.