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/classes/class-bbp-converter.php

    r6514 r6537  
    8383    public function admin_head() {
    8484
    85         // Variables
    86         $bbp        = bbpress();
    87         $suffix     = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
    88         $repair_url = add_query_arg( array(
    89             'page' => 'bbp-repair'
    90         ), admin_url() );
    91 
    9285        // Enqueue scripts
    93         wp_enqueue_script( 'postbox'   );
    94         wp_enqueue_script( 'dashboard' );
    95         wp_enqueue_script( 'bbp-converter', $bbp->admin->js_url . 'converter' . $suffix . '.js', array( 'jquery', 'postbox' ), $bbp->version );
     86        wp_enqueue_script( 'bbp-converter' );
    9687
    9788        // Localize JS
     
    119110
    120111                // Import
    121                 'import_success'      => sprintf( esc_html__( 'Repair any missing information: %s', 'bbpress' ), '<a href="' . esc_url( $repair_url ) . '">' . esc_html__( 'Continue', 'bbpress' ) . '</a>' ),
    122112                'import_complete'     => esc_html__( 'Import Finished',            'bbpress' ),
    123113                'import_stopped_user' => esc_html__( 'Import Stopped (by User)',   'bbpress' ),
Note: See TracChangeset for help on using the changeset viewer.