Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/13/2017 05:30:47 AM (9 years ago)
Author:
johnjamesjacoby
Message:

Tools: Improvements to repair, upgrade, and converter tools.

  • Use escaped gettext equivalent functions where appropriate
  • Rename description to title so that more descriptive descriptions can be used per-tool in a future version
  • Register all scripts, and properly enqueue them only a needed
  • Reorder & re-title some tools to better match each other
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/tools/repair.php

    r6523 r6537  
    8989                                </th>
    9090                                <td class="bbp-tool-title column-primary column-description" data-colname="<?php esc_html_e( 'Description', 'bbpress' ); ?>">
    91                                     <strong><?php echo esc_html( $item['description'] ); ?></strong>
    92                                     <div class="row-actions hide-if-no-js">
     91                                    <strong><?php echo esc_html( $item['title'] ); ?></strong><?php
     92
     93                                        // Optional description
     94                                        if ( ! empty( $item['description'] ) ) :
     95                                            echo esc_html( $item['description'] );
     96                                        endif;
     97
     98                                    ?><div class="row-actions hide-if-no-js">
    9399                                        <span class="run">
    94                                             <a href="<?php bbp_admin_repair_tool_run_url( $item ); ?>" aria-label="<?php printf( esc_html__( 'Run %s', 'bbpress' ), $item['description'] ); ?>" id="<?php echo esc_attr( $item['id'] ); ?>" ><?php esc_html_e( 'Run', 'bbpress' ); ?></a>
     100                                            <a href="<?php bbp_admin_repair_tool_run_url( $item ); ?>" aria-label="<?php printf( esc_html__( 'Run %s', 'bbpress' ), $item['title'] ); ?>" id="<?php echo esc_attr( $item['id'] ); ?>" ><?php esc_html_e( 'Run', 'bbpress' ); ?></a>
    95101                                        </span>
    96102                                    </div>
Note: See TracChangeset for help on using the changeset viewer.