Merge pull request #16470 from ramiy/patch-4

i18n: Simpler translation string with placeholders
This commit is contained in:
Mike Jolley 2017-08-16 11:25:48 +01:00 committed by GitHub
commit 34ae983cc9
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ abstract class WP_REST_Controller {
* Register the routes for the objects of the controller.
*/
public function register_routes() {
wc_doing_it_wrong( 'WP_REST_Controller::register_routes', __( 'The register_routes() method must be overridden', 'woocommerce' ), 'WPAPI-2.0' );
wc_doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden.", 'woocommerce' ), 'register_routes()' ), 'WPAPI-2.0' );
}
/**