Add WP version number class to Setup Wizard/OBW body element.
This commit is contained in:
parent
104f40c36e
commit
fd66112bb7
|
@ -377,6 +377,9 @@ class WC_Admin_Setup_Wizard {
|
||||||
* Setup Wizard Header.
|
* Setup Wizard Header.
|
||||||
*/
|
*/
|
||||||
public function setup_wizard_header() {
|
public function setup_wizard_header() {
|
||||||
|
// same as default WP from wp-admin/admin-header.php.
|
||||||
|
$version_class = 'branch-' . str_replace( array( '.', ',' ), '-', floatval( get_bloginfo( 'version' ) ) );
|
||||||
|
|
||||||
set_current_screen();
|
set_current_screen();
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -390,7 +393,7 @@ class WC_Admin_Setup_Wizard {
|
||||||
<?php do_action( 'admin_print_styles' ); ?>
|
<?php do_action( 'admin_print_styles' ); ?>
|
||||||
<?php do_action( 'admin_head' ); ?>
|
<?php do_action( 'admin_head' ); ?>
|
||||||
</head>
|
</head>
|
||||||
<body class="wc-setup wp-core-ui <?php echo esc_attr( 'wc-setup-step__' . $this->step ); ?>">
|
<body class="wc-setup wp-core-ui <?php echo esc_attr( 'wc-setup-step__' . $this->step ); ?> <?php echo esc_attr( $version_class ); ?>">
|
||||||
<h1 class="wc-logo"><a href="https://woocommerce.com/"><img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/woocommerce_logo.png" alt="<?php esc_attr_e( 'WooCommerce', 'woocommerce' ); ?>" /></a></h1>
|
<h1 class="wc-logo"><a href="https://woocommerce.com/"><img src="<?php echo esc_url( WC()->plugin_url() ); ?>/assets/images/woocommerce_logo.png" alt="<?php esc_attr_e( 'WooCommerce', 'woocommerce' ); ?>" /></a></h1>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue