Skip to:
Content

BuddyPress.org

Ticket #8357: 8357.patch

File 8357.patch, 4.3 KB (added by imath, 4 years ago)
  • src/bp-core/admin/bp-core-admin-tools.php

    diff --git src/bp-core/admin/bp-core-admin-tools.php src/bp-core/admin/bp-core-admin-tools.php
    index aa9f4c645..c05eecc81 100644
    function bp_core_admin_tools() { 
    2121
    2222                <h1><?php esc_html_e( 'BuddyPress Tools', 'buddypress' ) ?></h1>
    2323
    24                 <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?></p>
     24                <hr class="wp-header-end" />
     25
     26                <p><?php esc_html_e( 'BuddyPress keeps track of various relationships between members, groups, and activity items.', 'buddypress' ); ?></p>
     27                <p><?php esc_html_e( 'Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?></p>
    2528                <p><?php esc_html_e( 'Use the tools below to manually recalculate these relationships.', 'buddypress' ); ?>
    2629                </p>
    27                 <p class="description"><?php esc_html_e( 'Some of these tools create substantial database overhead. Avoid running more than one repair job at a time.', 'buddypress' ); ?></p>
     30                <p class="attention"><?php esc_html_e( 'Some of these tools create substantial database overhead. Avoid running more than one repair job at a time.', 'buddypress' ); ?></p>
     31
     32                <h2><?php esc_html_e( 'Activate checkboxe(s) to select the operation(s) to perform', 'buddypress' ); ?></h2>
    2833
    2934                <form class="settings" method="post" action="">
    3035
    3136                        <fieldset>
    32                                 <legend><?php esc_html_e( 'Repair tools', 'buddypress' ) ?></legend>
     37                                <legend class="screen-reader-text"><?php esc_html_e( 'Repair tools', 'buddypress' ); ?></legend>
    3338
    34                                 <div class="checkbox">
    3539                                <?php foreach ( bp_admin_repair_list() as $item ) : ?>
    36                                         <label for="<?php echo esc_attr( str_replace( '_', '-', $item[0] ) ); ?>"><input type="checkbox" class="checkbox" name="<?php echo esc_attr( $item[0] ) . '" id="' . esc_attr( str_replace( '_', '-', $item[0] ) ); ?>" value="1" /> <?php echo esc_html( $item[1] ); ?></label>
     40                                        <p>
     41                                                <label for="<?php echo esc_attr( str_replace( '_', '-', $item[0] ) ); ?>">
     42                                                        <input type="checkbox" class="checkbox" name="<?php echo esc_attr( $item[0] ) . '" id="' . esc_attr( str_replace( '_', '-', $item[0] ) ); ?>" value="1" /> <?php echo esc_html( $item[1] ); ?>
     43                                                </label>
     44                                        </p>
    3745                                <?php endforeach; ?>
    38                                 </div>
    3946
    4047                                <p class="submit">
    4148                                        <input class="button-primary" type="submit" name="bp-tools-submit" value="<?php esc_attr_e( 'Repair Items', 'buddypress' ); ?>" />
  • src/bp-core/admin/css/common.css

    diff --git src/bp-core/admin/css/common.css src/bp-core/admin/css/common.css
    index c5f7aa6fb..c0af4884c 100644
    TABLE OF CONTENTS: 
    2121        3.1 Users List
    2222        3.2 Site Notices
    23234.0 Emails - Edit page
    24 5.0 Tools - BuddyPress
    25 6.0 Plugins page
     245.0 Plugins page
    2625------------------------------------------------------------------------------*/
    2726
    2827/*------------------------------------------------------------------------------
    body.post-type-bp-email .categorydiv label { 
    523522}
    524523
    525524/*------------------------------------------------------------------------------
    526  * 5.0 Tools - BuddyPress
    527  *----------------------------------------------------------------------------*/
    528 .tools_page_bp-tools .wrap {
    529         max-width: 950px;
    530 }
    531 
    532 .tools_page_bp-tools p {
    533         line-height: 2;
    534 }
    535 
    536 .tools_page_bp-tools fieldset {
    537         margin: 2em 0 0;
    538 }
    539 
    540 .tools_page_bp-tools legend {
    541         color: #23282d;
    542         font-size: 1.3em;
    543         font-weight: 600;
    544         margin: 1em 0;
    545 }
    546 
    547 .tools_page_bp-tools label {
    548         clear: left;
    549         display: block;
    550         line-height: 1.5;
    551         margin: 0 0 1em;
    552         vertical-align: middle;
    553 }
    554 
    555 @media screen and (max-width: 782px) {
    556 
    557         .tools_page_bp-tools p {
    558                 line-height: 1.5;
    559         }
    560 
    561         .tools_page_bp-tools label {
    562                 margin-bottom: 1em;
    563                 padding-right: 25px;
    564                 text-indent: -33px;
    565         }
    566 
    567         .tools_page_bp-tools .checkbox {
    568                 padding: 0 0 0 30px;
    569         }
    570 }
    571 
    572 
    573 /*------------------------------------------------------------------------------
    574  * 6.0 Plugins page
     525 * 5.0 Plugins page
    575526 *----------------------------------------------------------------------------*/
    576527#buddypress-update.not-shiny .update-message {
    577528        border-left: 0;