Merge pull request woocommerce/woocommerce-admin#2733 from woocommerce/fix/2732

add version string to _doing_it_wrong
This commit is contained in:
Jeff Stieler 2019-08-05 13:15:23 -06:00 committed by GitHub
commit 58209c4cde
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 retrieval should be called on or after the `current_screen` hook.', 'woocommerce-admin' ), '0.16.0' );
}
if ( is_null( $this->current_page ) ) {