Changeset 6491
- Timestamp:
- 06/05/2017 08:26:58 PM (3 years ago)
- Location:
- trunk/src/includes/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/admin/classes/class-bbp-converter.php
r6475 r6491 183 183 // Import 184 184 'import_success' => sprintf( esc_html__( 'Repair any missing information: %s', 'bbpress' ), '<a href="' . esc_url( $repair_url ) . '">' . esc_html__( 'Continue', 'bbpress' ) . '</a>' ), 185 'import_complete' => esc_html__( 'Import Complete', 'bbpress' ),185 'import_complete' => esc_html__( 'Import Finished', 'bbpress' ), 186 186 'import_stopped_user' => esc_html__( 'Import Stopped (by User)', 'bbpress' ), 187 187 'import_error_db' => esc_html__( 'Database Connection Failed', 'bbpress' ), … … 257 257 // Save step and count so that it can be restarted. 258 258 if ( ! get_option( '_bbp_converter_step' ) || ! empty( $_POST['_bbp_converter_restart'] ) ) { 259 update_option( '_bbp_converter_step', 1);259 update_option( '_bbp_converter_step', 0 ); 260 260 update_option( '_bbp_converter_start', 0 ); 261 261 … … 629 629 default : 630 630 $this->reset(); 631 $this->converter_output( esc_html__( 'Import Complete', 'bbpress' ) );631 $this->converter_output( esc_html__( 'Import Finished', 'bbpress' ) ); 632 632 633 633 break; -
trunk/src/includes/admin/settings.php
r6485 r6491 1661 1661 1662 1662 // Status 1663 $started = (bool) get_option( '_bbp_converter_query', false ); 1664 $step = (int) get_option( '_bbp_converter_step', 0 ); 1665 $max = 17; // Filter? 1663 $step = (int) get_option( '_bbp_converter_step', 0 ); 1664 $max = 17; // Filter? 1666 1665 1667 1666 // Starting or continuing? 1668 $start_text = ( true === $started)1667 $start_text = ! empty( $step ) 1669 1668 ? esc_html__( 'Continue', 'bbpress' ) 1670 1669 : esc_html__( 'Start', 'bbpress' ); 1671 1670 1672 1671 // Starting or continuing? 1673 $status_text = ( true === $started)1674 ? sprintf( esc_html__( ' Stopped at step %d of %d', 'bbpress' ), $step, $max )1672 $status_text = ! empty( $step ) 1673 ? sprintf( esc_html__( 'Previously stopped at step %d of %d', 'bbpress' ), $step, $max ) 1675 1674 : esc_html__( 'Ready to go.', 'bbpress' ); ?> 1676 1675
Note: See TracChangeset
for help on using the changeset viewer.