bp_core_update_js

  • apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.dev.js' ), array( 'jquery' ), '20110723' )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/admin/bp-core-update.php :: Trac Source Line: 1229
      	// Add a hook for css/js
      	add_action( "admin_print_styles-$hook", 'bp_core_update_add_admin_menu_styles' );
      }
      add_action( bp_core_update_admin_hook(),  'bp_core_update_add_admin_menu', 9 );
      
      function bp_core_update_add_admin_menu_styles() {
      	if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
      		wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.dev.css' ), array(), '20110723' );
      		wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.dev.js' ), array( 'jquery' ), '20110723' );
      	} else {
      		wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.css' ), array(), '20110723' );
      		wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.js' ), array( 'jquery' ), '20110723' );
      
      	}
      
      	wp_enqueue_script( 'thickbox' );
      	wp_enqueue_style( 'thickbox' ); ?>
      
      	<style type="text/css">
      
  • apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.js' ), array( 'jquery' ), '20110723' )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/admin/bp-core-update.php :: Trac Source Line: 1232
      }
      add_action( bp_core_update_admin_hook(),  'bp_core_update_add_admin_menu', 9 );
      
      function bp_core_update_add_admin_menu_styles() {
      	if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
      		wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.dev.css' ), array(), '20110723' );
      		wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.dev.js' ), array( 'jquery' ), '20110723' );
      	} else {
      		wp_enqueue_style( 'bp-admin-css', apply_filters( 'bp_core_admin_css', plugins_url( '/buddypress' ) . '/bp-core/css/admin.css' ), array(), '20110723' );
      		wp_enqueue_script( 'bp-update-js', apply_filters( 'bp_core_update_js', plugins_url( '/buddypress' ) . '/bp-core/js/update.js' ), array( 'jquery' ), '20110723' );
      
      	}
      
      	wp_enqueue_script( 'thickbox' );
      	wp_enqueue_style( 'thickbox' ); ?>
      
      	<style type="text/css">
      		/* Wizard Icon */
      		ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a img { display: none; }
      		ul#adminmenu li.toplevel_page_bp-wizard .wp-menu-image a { background-image: url( <?php echo plugins_url( 'buddypress/bp-core/images/admin_menu_icon.png' ) ?> ) !important; background-position: -1px -32px; }
      

Comments are closed.