Changeset 10152 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 09/29/2015 10:03:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r10109 r10152 1935 1935 // Is feature active? 1936 1936 if ( ! empty( $feature ) ) { 1937 // The xProfile component is specific 1938 if ( 'xprofile' === $component ) { 1939 $component = 'profile'; 1940 } 1941 1937 1942 if ( empty( buddypress()->$component->features ) || false === in_array( $feature, buddypress()->$component->features, true ) ) { 1938 1943 $retval = false; … … 2245 2250 function bp_is_user_change_avatar() { 2246 2251 return (bool) ( bp_is_profile_component() && bp_is_current_action( 'change-avatar' ) ); 2252 } 2253 2254 /** 2255 * Is the current page the a user's change cover image profile page? 2256 * 2257 * Eg http://example.com/members/joe/profile/change-cover-image/ (or a subpage thereof). 2258 * 2259 * @since 2.4.0 2260 * 2261 * @return True if the current page is a user's profile edit cover image page. 2262 */ 2263 function bp_is_user_change_cover_image() { 2264 return (bool) ( bp_is_profile_component() && bp_is_current_action( 'change-cover-image' ) ); 2247 2265 } 2248 2266
Note: See TracChangeset
for help on using the changeset viewer.