Changeset 502 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 11/06/2008 05:16:28 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r373 r502 7 7 add_action( 'wp_head', 'xprofile_add_signup_css' ); 8 8 9 function xprofile_add_signup_js() { 10 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 11 wp_enqueue_script( 'jquery' ); 12 } 13 add_action( 'wp', 'xprofile_add_signup_js' ); 9 14 10 15 function xprofile_add_admin_css() { … … 15 20 add_action( 'admin_head', 'xprofile_add_admin_css' ); 16 21 17 18 function xprofile_add_admin_js() {19 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {20 wp_enqueue_script( 'bp-xprofile-admin-js', site_url() . "/wp-content/mu-plugins/bp-xprofile/js/admin.js" );21 add_action( 'admin_head', 'bp_core_add_cropper_js' );22 }23 }24 add_action( 'admin_menu', 'xprofile_add_admin_js' );25 26 22 function xprofile_add_cropper_js() { 27 23 global $bp; 28 24 29 if ( $_SERVER['SCRIPT_NAME'] == '/wp-activate.php' || $bp['current_action'] == 'change-avatar' || ( isset($_GET['page']) && $_GET['page'] == 'bp-xprofile.php' )) {25 if ( $_SERVER['SCRIPT_NAME'] == '/wp-activate.php' || $bp['current_action'] == 'change-avatar' ) { 30 26 wp_enqueue_script('jquery'); 31 27 wp_enqueue_script('prototype');
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)