Changeset 12280
- Timestamp:
- 11/07/2018 04:08:57 PM (6 years ago)
- Location:
- trunk/src/bp-templates/bp-nouveau/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php
r12279 r12280 220 220 remove_filter( 'bp_get_blogs_visit_blog_button', 'bp_nouveau_blogs_catch_button_args', 100, 1 ); 221 221 222 $button_args = bp_nouveau()->blogs->button_args ; 223 if ( ! empty( $button_args ) ) { 222 if ( isset( bp_nouveau()->blogs->button_args ) && bp_nouveau()->blogs->button_args ) { 223 $button_args = bp_nouveau()->blogs->button_args ; 224 224 225 // If we pass through parent classes add them to $button array 225 226 $parent_class = ''; -
trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
r12279 r12280 946 946 remove_filter( 'bp_get_group_join_button', 'bp_nouveau_groups_catch_button_args', 100, 1 ); 947 947 948 $button_args = bp_nouveau()->groups->button_args;949 if ( ! empty( $button_args ) ) {948 if ( isset( bp_nouveau()->groups->button_args ) && bp_nouveau()->groups->button_args ) { 949 $button_args = bp_nouveau()->groups->button_args; 950 950 951 951 // If we pass through parent classes merge those into the existing ones -
trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php
r12279 r12280 340 340 remove_filter( 'bp_get_add_friend_button', 'bp_nouveau_members_catch_button_args', 100, 1 ); 341 341 342 $button_args = bp_nouveau()->members->button_args;343 if ( ! empty( $button_args ) ) {342 if ( isset( bp_nouveau()->members->button_args ) && bp_nouveau()->members->button_args ) { 343 $button_args = bp_nouveau()->members->button_args; 344 344 345 345 $buttons['member_friendship'] = array( … … 393 393 remove_filter( 'bp_get_send_public_message_button', 'bp_nouveau_members_catch_button_args', 100, 1 ); 394 394 395 $button_args = bp_nouveau()->members->button_args; 396 if ( ! empty( $button_args ) ) { 395 if ( isset( bp_nouveau()->members->button_args ) && bp_nouveau()->members->button_args ) { 396 $button_args = bp_nouveau()->members->button_args; 397 397 398 /* 398 399 * This button should remain as an anchor link. … … 435 436 remove_filter( 'bp_get_send_message_button_args', 'bp_nouveau_members_catch_button_args', 100, 1 ); 436 437 437 $button_args = bp_nouveau()->members->button_args; 438 if ( ! empty( $button_args ) ) { 438 if ( isset( bp_nouveau()->members->button_args ) && bp_nouveau()->members->button_args ) { 439 $button_args = bp_nouveau()->members->button_args; 440 439 441 /* 440 442 * This button should remain as an anchor link.
Note: See TracChangeset
for help on using the changeset viewer.