Changeset 6867
- Timestamp:
- 03/25/2013 08:00:13 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-theme-compatibility.php
r6866 r6867 47 47 * 'url' => URL to theme 48 48 * ); 49 * @var array 49 * @var array 50 50 */ 51 51 protected $_data = array(); … … 384 384 385 385 // Switch defaults if post is set 386 if ( isset( $wp_query->post ) ) { 386 if ( isset( $wp_query->post ) ) { 387 387 $defaults = array( 388 388 'ID' => $wp_query->post->ID, … … 425 425 426 426 // Setup the dummy post object 427 $wp_query->post = new stdClass; 427 $wp_query->post = new stdClass; 428 428 $wp_query->post->ID = $dummy['ID']; 429 429 $wp_query->post->post_status = $dummy['post_status']; -
trunk/bp-templates/bp-legacy/buddypress-functions.php
r6866 r6867 87 87 add_filter( 'bp_enqueue_scripts', array( $this, 'localize_scripts' ) ); // Enqueue theme script localization 88 88 add_action( 'bp_head', array( $this, 'head_scripts' ) ); // Output some extra JS in the <head> 89 89 90 90 /** Body no-js Class ********************************************************/ 91 91 add_filter( 'body_class', array( $this, 'add_nojs_body_class' ), 20, 1 ); … … 284 284 <?php 285 285 } 286 286 287 287 /** 288 288 * Adds the no-js class to the body tag. … … 299 299 if ( ! in_array( 'no-js', $classes ) ) 300 300 $classes[] = 'no-js'; 301 301 302 302 return array_unique( $classes ); 303 303 }
Note: See TracChangeset
for help on using the changeset viewer.