Changeset 12899
- Timestamp:
- 04/20/2021 04:03:08 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r12897 r12899 84 84 if ( in_array( $plugin_page, array( 'bp-tools', 'available-tools' ) ) ) { 85 85 $submenu_file = $plugin_page; 86 } 87 88 // Keep the BuddyPress tools menu highlighted. 89 if ( 'bp-optouts' === $plugin_page ) { 90 $submenu_file = 'bp-tools'; 86 91 } 87 92 } … … 474 479 'name' => __( 'Repair', 'buddypress' ), 475 480 ), 481 '1' => array( 482 'href' => bp_get_admin_url( add_query_arg( array( 'page' => 'bp-optouts' ), $tools_page ) ), 483 'name' => __( 'Manage Opt-outs', 'buddypress' ), 484 ), 476 485 ); 477 486 } -
trunk/src/bp-core/admin/bp-core-admin-tools.php
r12897 r12899 556 556 esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ), 557 557 '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Repair Tools', 'buddypress' ) . '</a>' 558 ); 559 ?> 560 </dd> 561 <dt><?php esc_html_e( 'Manage Opt-outs', 'buddypress' ) ?></dt> 562 <dd> 563 <?php esc_html_e( 'BuddyPress stores opt-out requests from people who are not members of this site, but have been contacted via communication from this site, and wish to opt-out from future communication.', 'buddypress' ); ?> 564 <?php 565 $url = add_query_arg( 'page', 'bp-optouts', bp_get_admin_url( $page ) ); 566 printf( 567 /* translators: %s: the link to the BuddyPress Nonmember Opt-outs */ 568 esc_html_x( 'Visit %s to manage your site’s opt-out requests.', 'buddypress opt-outs intro', 'buddypress' ), 569 '<a href="' . esc_url( $url ) . '">' . esc_html__( 'Nonmember Opt-outs', 'buddypress' ) . '</a>' 558 570 ); 559 571 ?> -
trunk/src/bp-core/classes/class-bp-admin.php
r12893 r12899 124 124 require( $this->admin_dir . 'bp-core-admin-slugs.php' ); 125 125 require( $this->admin_dir . 'bp-core-admin-tools.php' ); 126 require( $this->admin_dir . 'bp-core-admin-optouts.php' ); 126 127 } 127 128 … … 302 303 ); 303 304 305 $hooks[] = add_submenu_page( 306 $tools_parent, 307 __( 'Manage Opt-outs', 'buddypress' ), 308 __( 'Manage Opt-outs', 'buddypress' ), 309 $this->capability, 310 'bp-optouts', 311 'bp_core_optouts_admin' 312 ); 313 304 314 // For network-wide configs, add a link to (the root site's) Emails screen. 305 315 if ( is_network_admin() && bp_is_network_activated() ) { … … 524 534 remove_submenu_page( 'index.php', 'bp-about' ); 525 535 remove_submenu_page( 'index.php', 'bp-credits' ); 536 537 // Nonmembers Opt-outs page. 538 if ( is_network_admin() ) { 539 remove_submenu_page( 'network-tools', 'bp-optouts' ); 540 } else { 541 remove_submenu_page( 'tools.php', 'bp-optouts' ); 542 } 526 543 } 527 544 -
trunk/src/bp-members/classes/class-bp-members-admin.php
r12778 r12899 510 510 $this->users_page .= '-network'; 511 511 $this->signups_page .= '-network'; 512 513 $this->members_optouts_page .= '-network'; 512 514 } 513 515 -
trunk/src/class-buddypress.php
r12898 r12899 599 599 'BP_Admin_Types' => 'core', 600 600 'BP_Optout' => 'core', 601 'BP_Optouts_List_Table' => 'core', 601 602 602 603 'BP_Core_Friends_Widget' => 'friends',
Note: See TracChangeset
for help on using the changeset viewer.