Minor fixes

* Removed extra double quotation from the image tag

* Fixed typo in the init() method

* Moved init() method body into the constructor -- a separate method is not necessary
This commit is contained in:
Moon 2021-02-22 19:46:31 -08:00
parent 781c5e24d7
commit 5c99233905
4 changed files with 19 additions and 22 deletions

View File

@ -12,15 +12,17 @@
.progress-wrapper {
border: 1px solid #757575;
border-radius: 20px;
border-radius: 16px;
font-size: 0.9em;
padding: 2px 10px 2px 7px;
padding: 2px 8px 2px 8px;
display: inline-block;
box-sizing: border-box;
}
.progress-wrapper span {
position: relative;
top: -2px;
top: -3px;
color: #757575;
}
.description div {
@ -35,14 +37,16 @@
}
.circle-progress {
margin-top: 1px;
margin-left: -3px;
circle {
stroke: #949494;
stroke: #f0f0f0;
stroke-width: 1px;
}
.bar {
stroke: #f0f0f0;
stroke: #949494;
}
}
}

View File

@ -70,24 +70,17 @@ if ( ! class_exists( 'WC_Admin_Dashboard_Setup', false ) ) :
$this->populate_general_tasks();
$this->populate_payment_tasks();
$this->completed_tasks_count = $this->get_completed_tasks_count();
$this->init();
add_meta_box(
'wc_admin_dashboard_setup',
__( 'WooCommerce Setup', 'woocommerce' ),
array( $this, 'render' ),
'dashboard',
'normal',
'high'
);
}
}
/**
* Hook meta_box
*/
public function init() {
add_meta_box(
'wc_admin_dasbharod_setup',
__( 'WooCommerce Setup', 'woocommerce' ),
array( $this, 'render' ),
'dashboard',
'normal',
'high'
);
}
/**
* Render meta box output.
*/

View File

@ -23,7 +23,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php echo esc_html_e( 'You\'re almost there! Once you complete store setup you can start receiving orders.', 'woocommerce' ); ?>
<div><a href='<?php echo esc_attr( $button_link ); ?>' class='button button-primary'><?php echo esc_html_e( 'Start selling', 'woocommerce' ); ?></a></div>
</div>
<img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png"" />
<img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/dashboard-widget-setup.png" />
</div>
<div class="clear"></div>
</div>

View File

@ -71,7 +71,7 @@ class WC_Admin_Dashboard_Setup_Test extends WC_Unit_Test_Case {
update_option( 'woocommerce_task_list_hidden', false );
$this->get_widget();
$this->assertArrayHasKey( 'wc_admin_dasbharod_setup', $wp_meta_boxes['dashboard']['normal']['high'] );
$this->assertArrayHasKey( 'wc_admin_dashboard_setup', $wp_meta_boxes['dashboard']['normal']['high'] );
}
/**