Changeset 7798
- Timestamp:
- 02/05/2014 07:40:14 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-functions.php
r7734 r7798 598 598 function bp_do_register_theme_directory() { 599 599 $register = 'bp-default' === get_stylesheet() || 'bp-default' === get_template(); 600 601 // Legacy sites continue to have the theme registered 602 if ( empty( $register ) && ( 1 == get_site_option( '_bp_retain_bp_default' ) ) ) { 603 $register = true; 604 } 605 600 606 return apply_filters( 'bp_do_register_theme_directory', $register ); 601 607 } -
trunk/bp-core/bp-core-update.php
r7756 r7798 226 226 bp_update_to_1_9(); 227 227 } 228 229 // 1.9.2 230 if ( $raw_db_version < 7731 ) { 231 bp_update_to_1_9_2(); 232 } 228 233 } 229 234 … … 302 307 303 308 /** 309 * Perform database updates for BP 1.9.2 310 * 311 * In 1.9, BuddyPress stopped registering its theme directory when it detected 312 * that bp-default (or a child theme) was not currently being used, in effect 313 * deprecating bp-default. However, this ended up causing problems when site 314 * admins using bp-default would switch away from the theme temporarily: 315 * bp-default would no longer be available, with no obvious way (outside of 316 * a manual filter) to restore it. In 1.9.2, we add an option that flags 317 * whether bp-default or a child theme is active at the time of upgrade; if so, 318 * the theme directory will continue to be registered even if the theme is 319 * deactivated temporarily. Thus, new installations will not see bp-default, 320 * but legacy installations using the theme will continue to see it. 321 * 322 * @since BuddyPress (1.9.2) 323 */ 324 function bp_update_to_1_9_2() { 325 if ( 'bp-default' === get_stylesheet() || 'bp-default' === get_template() ) { 326 update_site_option( '_bp_retain_bp_default', 1 ); 327 } 328 } 329 330 /** 304 331 * Redirect user to BP's What's New page on first page load after activation. 305 332 * -
trunk/bp-loader.php
r7767 r7798 305 305 306 306 $this->version = '2.0-alpha-7752'; 307 $this->db_version = 7 553;307 $this->db_version = 7731; 308 308 309 309 /** Loading ***************************************************/
Note: See TracChangeset
for help on using the changeset viewer.