Changeset 6164
- Timestamp:
- 12/13/2016 09:08:01 AM (6 years ago)
- Location:
- branches/1.2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.2/bb-admin/includes/class.bb-install.php
r2403 r6164 102 102 * @return boolean Always returns true 103 103 */ 104 function BB_Install( $caller )104 function __construct( $caller ) 105 105 { 106 106 $this->caller = $caller; … … 160 160 161 161 return true; 162 } 163 164 function BB_Install( $caller ) { 165 $this->__construct( $caller ); 162 166 } 163 167 … … 1281 1285 require_once( BACKPRESS_PATH . 'class.bpdb-multi.php' ); 1282 1286 1283 $bbdb = &new BPDB_Multi( array(1287 $bbdb = new BPDB_Multi( array( 1284 1288 'name' => BBDB_NAME, 1285 1289 'user' => BBDB_USER, -
branches/1.2/bb-includes/class.bb-dir-map.php
r2393 r6164 15 15 var $_current_file; 16 16 17 function BB_Dir_Map( $root, $args = '' ) {17 function __construct( $root, $args = '' ) { 18 18 if ( !is_dir( $root ) ) { 19 19 $this->error = new WP_Error( 'bb_dir_map', __('Not a valid directory') ); … … 28 28 $this->_current_root = $this->root = rtrim($root, '/\\'); 29 29 $this->map(); 30 } 31 32 function BB_Dir_Map( $root, $args = '' ) { 33 $this->__construct( $root, $args ); 30 34 } 31 35 -
branches/1.2/bb-includes/class.bb-locale.php
r2167 r6164 352 352 * @return BB_Locale 353 353 */ 354 function BB_Locale() {354 function __construct() { 355 355 $this->init(); 356 356 $this->register_globals(); 357 } 358 359 function BB_Locale() { 360 $this->__construct(); 357 361 } 358 362 } -
branches/1.2/bb-includes/class.bb-query.php
r3371 r6164 17 17 18 18 // Can optionally pass unique id string to help out filters 19 function BB_Query( $type = 'topic', $query = '', $id = '' ) {19 function __construct( $type = 'topic', $query = '', $id = '' ) { 20 20 $this->init( $type, $query, $id ); 21 21 22 22 if ( !empty($this->query) ) 23 23 $this->query(); 24 } 25 26 function BB_Query( $type = 'topic', $query = '', $id = '' ) { 27 $this->__construct( $type, $query, $id ); 24 28 } 25 29 … … 883 887 884 888 // Can optionally pass unique id string to help out filters 885 function BB_Query_Form( $type = 'topic', $defaults = '', $allowed = '', $id = '' ) {889 function __construct( $type = 'topic', $defaults = '', $allowed = '', $id = '' ) { 886 890 $this->defaults = wp_parse_args( $defaults ); 887 891 $this->allowed = wp_parse_args( $allowed ); 888 892 if ( !empty($defaults) || !empty($allowed) ) 889 893 $this->query_from_env($type, $defaults, $allowed, $id); 894 } 895 896 function BB_Query_Form( $type = 'topic', $defaults = '', $allowed = '', $id = '' ) { 897 $this->__construct( $type, $defaults, $allowed, $id ); 890 898 } 891 899 -
branches/1.2/bb-includes/class.bb-walker.php
r2395 r6164 163 163 } 164 164 165 function BB_Loop( &$elements ) {165 function __construct( &$elements ) { 166 166 $this->elements = $elements; 167 167 if ( !is_array($this->elements) || empty($this->elements) ) 168 168 return $this->elements = false; 169 } 170 171 function BB_Loop( &$elements ) { 172 $this->__construct( $elements ); 169 173 } 170 174 -
branches/1.2/bb-includes/functions.bb-deprecated.php
r2475 r6164 890 890 if ( !class_exists( 'WP_User' ) ) : // Deprecated in BackPress not WordPress 891 891 class WP_User extends BP_User { 892 function __construct( $id, $name = '' ) { 893 return parent::BP_User( $id, $name ); 894 } 892 895 function WP_User( $id, $name = '' ) { 893 return parent::BP_User( $id, $name );896 $this->__construct( $id, $name ); 894 897 } 895 898 } -
branches/1.2/xmlrpc.php
r5611 r6164 105 105 * @return void 106 106 */ 107 function BB_XMLRPC_Server()107 function __construct() 108 108 { 109 109 // bbPress publishing API … … 174 174 } 175 175 176 176 function BB_XMLRPC_Server() 177 { 178 $this->__construct(); 179 } 177 180 178 181 /**
Note: See TracChangeset
for help on using the changeset viewer.