Changeset 13689 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 01/05/2024 03:40:26 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13493 r13689 1924 1924 */ 1925 1925 return (bool) apply_filters( 'bp_is_blog_page', $is_blog_page ); 1926 } 1927 1928 /** 1929 * Checks whether the requested URL is site home's one. 1930 * 1931 * @since 12.1.0 1932 * 1933 * @return boolean True if the requested URL is site home's one. False otherwise. 1934 */ 1935 function bp_is_site_home() { 1936 $requested_url = bp_get_requested_url(); 1937 $home_url = home_url( '/' ); 1938 1939 if ( is_customize_preview() ) { 1940 $requested_url = wp_parse_url( $requested_url, PHP_URL_PATH ); 1941 $home_url = wp_parse_url( $home_url, PHP_URL_PATH ); 1942 } 1943 1944 return $home_url === $requested_url; 1926 1945 } 1927 1946
Note: See TracChangeset
for help on using the changeset viewer.