add version string to _doing_it_wrong

This commit is contained in:
Ron Rennick 2019-08-01 10:25:52 -03:00
parent 307338a50f
commit 9b9105ec01
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ class WC_Admin_Page_Controller {
// If 'current_screen' hasn't fired yet, the current page calculation
// will fail which causes `false` to be returned for all subsquent calls.
if ( ! did_action( 'current_screen' ) ) {
_doing_it_wrong( __FUNCTION__, esc_html__( 'Current page retreival should be called on or after the `current_screen` hook.', 'woocommerce-admin' ) );
_doing_it_wrong( __FUNCTION__, esc_html__( 'Current page retreival should be called on or after the `current_screen` hook.', 'woocommerce-admin' ), '0.12.0' );
}
if ( is_null( $this->current_page ) ) {