Changeset 11722
- Timestamp:
- 11/02/2017 03:06:03 AM (9 years ago)
- Location:
- branches/2.9
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/bp-blogs/bp-blogs-functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.9
- Property svn:mergeinfo changed
/trunk (added) merged: 11720-11721
- Property svn:mergeinfo changed
-
branches/2.9/src/bp-blogs/bp-blogs-functions.php
r11447 r11722 549 549 * Deletes the 'url' blogmeta for a site. 550 550 * 551 * Hooked to 'refresh_blog_details', which is notably used when editing a site 552 * under "Network Admin > Sites". 551 * Fires when a site's details are updated, which generally happens when 552 * editing a site under "Network Admin > Sites". Prior to WP 4.9, the 553 * correct hook was 'refresh_blog_details'; afterward, 'clean_site_cache'. 553 554 * 554 555 * @since 2.3.0 … … 559 560 bp_blogs_delete_blogmeta( (int) $site_id, 'url' ); 560 561 } 561 add_action( 'refresh_blog_details', 'bp_blogs_delete_url_blogmeta' ); 562 563 if ( function_exists( 'wp_switch_roles_and_user' ) ) { 564 add_action( 'clean_site_cache', 'bp_blogs_delete_url_blogmeta' ); 565 } else { 566 add_action( 'refresh_blog_details', 'bp_blogs_delete_url_blogmeta' ); 567 } 562 568 563 569 /**
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)