Changeset 8683 for trunk/src/bp-blogs/bp-blogs-template.php
- Timestamp:
- 07/23/2014 08:43:51 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-blogs/bp-blogs-template.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-blogs/bp-blogs-template.php
r8662 r8683 1044 1044 1045 1045 /** 1046 * Output the base URL for subdomain installations of WordPress Multisite.1047 *1048 * @since BuddyPress (1.6.0)1049 */1050 function bp_blogs_subdomain_base() {1051 echo bp_blogs_get_subdomain_base();1052 }1053 /**1054 * Return the base URL for subdomain installations of WordPress Multisite.1055 *1056 * @since BuddyPress (1.6.0)1057 *1058 * @return string The base URL - eg, 'example.com' for site_url() example.com or www.example.com.1059 */1060 function bp_blogs_get_subdomain_base() {1061 global $current_site;1062 1063 return apply_filters( 'bp_blogs_subdomain_base', preg_replace( '|^www\.|', '', $current_site->domain ) . $current_site->path );1064 }1065 1066 /**1067 1046 * Process a blog registration submission. 1068 1047 *
Note: See TracChangeset
for help on using the changeset viewer.