Changeset 13504
- Timestamp:
- 06/19/2023 06:09:44 PM (18 months ago)
- Location:
- trunk/src
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-block.php
r13500 r13504 285 285 286 286 // Try to load the translation. 287 $translated =wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir );287 wp_set_script_translations( $this->block->editor_script, $translation_domain, $translation_dir ); 288 288 } 289 289 } -
trunk/src/bp-core/classes/class-bp-core-bp-options-nav-backcompat.php
r10752 r13504 125 125 $nav = array(); 126 126 127 if ( empty( $ primary_nav ) ) {127 if ( empty( $secondary_nav ) ) { 128 128 return $nav; 129 129 } 130 130 131 foreach ( $ primary_nav as $item ) {131 foreach ( $secondary_nav as $item ) { 132 132 $nav[ $item->slug ] = (array) $item; 133 133 } -
trunk/src/bp-messages/bp-messages-notifications.php
r13503 r13504 28 28 $text = ''; 29 29 $link = bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_get_messages_slug(), 'inbox' ) ) ); 30 $title = __( 'Inbox', 'buddypress' );31 30 $amount = 'single'; 32 31 -
trunk/src/bp-templates/bp-nouveau/includes/activity/template-tags.php
r13436 r13504 4 4 * 5 5 * @since 3.0.0 6 * @version 1 0.0.06 * @version 12.0.0 7 7 */ 8 8 … … 552 552 $data_element = 'href'; 553 553 } 554 555 $spam_link = bp_rewrites_get_url(556 array(557 'component_id' => 'activity',558 'single_item_action' => 'spam',559 'single_item_action_variables' => array( bp_get_activity_id() ),560 )561 );562 554 563 555 $buttons['activity_spam']['button_attr'][ $data_element ] = wp_nonce_url( -
trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php
r13409 r13504 4 4 * 5 5 * @since 3.0.0 6 * @version 6.0.06 * @version 12.0.0 7 7 */ 8 8 … … 184 184 } 185 185 186 /*187 * If we have a arg value for $button_element passed through188 * use it to default all the $buttons['button_element'] values189 * otherwise default to 'a' (anchor)190 * Or override & hardcode the 'element' string on $buttons array.191 *192 * Icons sets a class for icon display if not using the button element193 */194 $icons = '';195 186 if ( ! empty( $args['button_element'] ) ) { 196 187 $button_element = $args['button_element'] ; 197 188 } else { 198 189 $button_element = 'a'; 199 $icons = ' icons'; 200 } 201 202 // If we pass through parent classes add them to $button array 190 } 191 192 // If we pass through parent classes add them to `$button` array. 203 193 $parent_class = ''; 204 194 if ( ! empty( $args['parent_attr']['class'] ) ) { -
trunk/src/bp-templates/bp-nouveau/includes/customizer-controls.php
r12156 r13504 4 4 * 5 5 * @since 3.0.0 6 * @version 3.1.06 * @version 12.0.0 7 7 */ 8 8 … … 32 32 public function render_content() { 33 33 $id = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) ); 34 $class = 'customize-control customize-control-' . $this->type;35 34 $setting = "bp_nouveau_appearance[{$this->type}_nav_order]"; 36 35 $item_nav = array(); … … 62 61 } else { 63 62 $item_nav = bp_nouveau_member_customizer_nav(); 64 65 $guide = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' ); 63 $guide = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' ); 66 64 } 67 65 ?> … … 76 74 <ul id="<?php echo esc_attr( $id ); ?>" class="ui-sortable" style="margin-top: 0px; height: 500px;" data-bp-type="<?php echo esc_attr( $this->type ); ?>"> 77 75 78 <?php 79 $i = 0; 80 foreach ( $item_nav as $item ) : 81 $i += 1; 82 ?> 76 <?php foreach ( $item_nav as $item ) : ?> 83 77 <li data-bp-nav="<?php echo esc_attr( $item->slug ); ?>"> 84 78 <div class="menu-item-bar"> -
trunk/src/bp-templates/bp-nouveau/includes/groups/ajax.php
r13273 r13504 4 4 * 5 5 * @since 3.0.0 6 * @version 6.3.06 * @version 12.0.0 7 7 */ 8 8 … … 378 378 */ 379 379 function bp_nouveau_ajax_send_group_invites() { 380 $bp = buddypress();381 382 380 $response = array( 383 381 'feedback' => __( 'Invites could not be sent. Please try again.', 'buddypress' ), -
trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php
r13503 r13504 522 522 function bp_nouveau_restrict_rest_group_invite_to_friends( $retval, $request ) { 523 523 if ( true === $retval && bp_is_active( 'friends' ) ) { 524 $group_id = $request->get_param( 'group_id' );525 524 $user_id = $request->get_param( 'user_id' ); 526 525 $inviter_id = $request->get_param( 'inviter_id' ); -
trunk/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
r13447 r13504 689 689 } 690 690 691 /*692 * If we have a arg value for $button_element passed through693 * use it to default all the $buttons['button_element'] values694 * otherwise default to 'a' (anchor) o override & hardcode the695 * 'element' string on $buttons array.696 *697 * Icons sets a class for icon display if not using the button element698 */699 $icons = '';700 691 if ( ! empty( $args['button_element'] ) ) { 701 692 $button_element = $args['button_element'] ; 702 693 } else { 703 694 $button_element = 'a'; 704 $icons = ' icons';705 695 } 706 696 -
trunk/src/bp-templates/bp-nouveau/includes/members/template-tags.php
r13447 r13504 248 248 } 249 249 250 /*251 * If we have a arg value for $button_element passed through252 * use it to default all the $buttons['button_element'] values253 * otherwise default to 'a' (anchor)254 * Or override & hardcode the 'element' string on $buttons array.255 *256 * Icons sets a class for icon display if not using the button element257 */258 $icons = '';259 250 if ( ! empty( $args['button_element'] ) ) { 260 251 $button_element = $args['button_element'] ; 261 252 } else { 262 253 $button_element = 'button'; 263 $icons = ' icons';264 254 } 265 255 -
trunk/src/bp-templates/bp-nouveau/includes/template-tags.php
r13472 r13504 475 475 } 476 476 477 $count_class = sprintf( '%1$s-%2$s-count-%3$s', $pagination_type, $screen, $position );478 $links_class = sprintf( '%1$s-%2$s-links-%3$s', $pagination_type, $screen, $position );479 ?>480 481 <?php482 477 if ( 'bottom' === $position && isset( $bottom_hook ) ) { 483 478 /**
Note: See TracChangeset
for help on using the changeset viewer.