Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/13/2017 05:30:47 AM (8 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/upgrade.php

    r6534 r6537  
    8686                                </th>
    8787                                <td class="bbp-tool-title column-primary column-description" data-colname="<?php esc_html_e( 'Description', 'bbpress' ); ?>">
    88                                     <strong><?php echo esc_html( $item['description'] ); ?></strong>
    89                                     <div class="row-actions hide-if-no-js">
     88                                    <strong><?php echo esc_html( $item['title'] ); ?></strong><?php
     89
     90                                        // Optional description
     91                                        if ( ! empty( $item['description'] ) ) :
     92                                            esc_html( $item['description'] );
     93                                        endif;
     94
     95                                    ?><div class="row-actions hide-if-no-js">
    9096                                        <span class="run">
    91                                             <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>
     97                                            <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>
    9298                                        </span>
    9399                                    </div>
Note: See TracChangeset for help on using the changeset viewer.