Changeset 3827
- Timestamp:
- 03/31/2012 07:14:26 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin/bbpress.php
r3822 r3827 942 942 */ 943 943 public function add_rewrite_tags() { 944 945 // User Profile tag 946 add_rewrite_tag( '%%' . bbp_get_user_rewrite_id() . '%%', '([^/]+)' ); 947 948 // View Page tag 949 add_rewrite_tag( '%%' . bbp_get_view_rewrite_id() . '%%', '([^/]+)' ); 950 951 // Edit Page tag 952 add_rewrite_tag( '%%' . bbp_get_edit_rewrite_id() . '%%', '([1]{1,})' ); 944 add_rewrite_tag( '%%' . bbp_get_user_rewrite_id() . '%%', '([^/]+)' ); // User Profile tag 945 add_rewrite_tag( '%%' . bbp_get_view_rewrite_id() . '%%', '([^/]+)' ); // View Page tag 946 add_rewrite_tag( '%%' . bbp_get_edit_rewrite_id() . '%%', '([1]{1,})' ); // Edit Page tag 953 947 } 954 948 … … 1025 1019 } 1026 1020 1027 // "And now here's something we hope you'll really like!"1028 bbpress();1029 1030 1021 /** 1031 * Experimental:1032 *1033 1022 * Hook bbPress early onto the 'plugins_loaded' action. 1034 1023 * … … 1036 1025 * actions, filters, and overrides setup without bbPress being in the way. 1037 1026 */ 1038 //add_action( 'plugins_loaded', 'bbpress', -999 ); 1027 if ( defined( 'BBPRESS_LATE_LOAD' ) ) { 1028 add_action( 'plugins_loaded', 'bbpress', (int) BBPRESS_LATE_LOAD ); 1029 1030 // "And now here's something we hope you'll really like!" 1031 } else { 1032 bbpress(); 1033 } 1039 1034 1040 1035 endif; // class_exists check
Note: See TracChangeset
for help on using the changeset viewer.