Skip to content

Commit

Permalink
Fix class name in _doing_it_wrong() message
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 4, 2018
1 parent 44afa85 commit fc622ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amp/class-amp-service-worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function add_query_var( $vars ) {
*/
public function add_amp_runtime_caching( $service_workers ) {
if ( ! ( $service_workers instanceof WP_Service_Worker_Scripts ) ) {
_doing_it_wrong( __METHOD__, esc_html__( 'Expected argument to be WP_Service_Workers.', 'amp' ), '1.0' );
_doing_it_wrong( __METHOD__, esc_html__( 'Expected argument to be WP_Service_Worker_Scripts.', 'amp' ), '1.0' );
return;
}

Expand Down Expand Up @@ -102,7 +102,7 @@ function() {
*/
public function add_image_runtime_caching( $service_workers ) {
if ( ! ( $service_workers instanceof WP_Service_Worker_Scripts ) ) {
_doing_it_wrong( __METHOD__, esc_html__( 'Expected argument to be WP_Service_Workers.', 'amp' ), '1.0' );
_doing_it_wrong( __METHOD__, esc_html__( 'Expected argument to be WP_Service_Worker_Scripts.', 'amp' ), '1.0' );
return;
}

Expand Down

0 comments on commit fc622ae

Please sign in to comment.