Ticket #4669: 4669.01.patch
File 4669.01.patch, 1.5 KB (added by , 13 years ago) |
---|
-
bp-core/bp-core-theme-compatibility.php
class BP_Theme_Compat { 58 58 */ 59 59 public function __construct( Array $properties = array() ) { 60 60 $this->_data = $properties; 61 62 $this->setup_actions(); 61 63 } 62 64 63 65 /** … … class BP_Theme_Compat { 83 85 public function __get( $property ) { 84 86 return array_key_exists( $property, $this->_data ) ? $this->_data[$property] : ''; 85 87 } 88 89 /** 90 * Setup actions. 91 * 92 * @since BuddyPress (1.7) 93 */ 94 protected function setup_actions() { 95 // Adds 'bp_head' hook 96 add_action( 'wp_head', array( $this, 'bp_head' ), 10 ); 97 } 98 99 /** 100 * Adds the 'bp_head' hook to the header. 101 * 102 * @since BuddyPress (1.7) 103 */ 104 public function bp_head() { 105 do_action( 'bp_head' ); 106 } 86 107 } 87 108 88 109 /** Functions *****************************************************************/ -
bp-templates/bp-legacy/buddypress-functions.php
class BP_Legacy extends BP_Theme_Compat { 85 85 * @uses add_filter() To add various filters 86 86 * @uses add_action() To add various actions 87 87 */ 88 pr ivatefunction setup_actions() {88 protected function setup_actions() { 89 89 90 90 /** Scripts ***********************************************************/ 91 91