Changeset 6153 for branches/1.1/bb-includes/class.bb-query.php
- Timestamp:
- 12/09/2016 01:58:10 PM (9 years ago)
- File:
-
- 1 edited
-
branches/1.1/bb-includes/class.bb-query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1/bb-includes/class.bb-query.php
r3371 r6153 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
Note: See TracChangeset
for help on using the changeset viewer.