File tree Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Expand file tree Collapse file tree 2 files changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -76,24 +76,6 @@ static function ( string $version ): void {
76
76
return ;
77
77
}
78
78
79
- if (
80
- ( is_admin () || ( defined ( 'WP_CLI ' ) && WP_CLI ) ) &&
81
- ! file_exists ( __DIR__ . '/detect.min.js ' )
82
- ) {
83
- // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
84
- trigger_error (
85
- esc_html (
86
- sprintf (
87
- /* translators: 1: File path. 2: CLI command. */
88
- '[Embed Optimizer] ' . __ ( 'Unable to load %1$s. Please make sure you have run %2$s. ' , 'embed-optimizer ' ),
89
- 'detect.min.js ' ,
90
- '`npm install && npm run build:plugin:embed-optimizer` '
91
- )
92
- ),
93
- E_USER_ERROR
94
- );
95
- }
96
-
97
79
define ( 'EMBED_OPTIMIZER_VERSION ' , $ version );
98
80
99
81
// Load in the Embed Optimizer plugin hooks.
Original file line number Diff line number Diff line change @@ -77,24 +77,6 @@ static function ( string $version ): void {
77
77
return ;
78
78
}
79
79
80
- if (
81
- ( is_admin () || ( defined ( 'WP_CLI ' ) && WP_CLI ) ) &&
82
- ! file_exists ( __DIR__ . '/lazy-load.min.js ' )
83
- ) {
84
- // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
85
- trigger_error (
86
- esc_html (
87
- sprintf (
88
- /* translators: 1: File path. 2: CLI command. */
89
- '[Image Prioritizer] ' . __ ( 'Unable to load %1$s. Please make sure you have run %2$s. ' , 'image-prioritizer ' ),
90
- 'lazy-load.min.js ' ,
91
- '`npm install && npm run build:plugin:image-prioritizer` '
92
- )
93
- ),
94
- E_USER_ERROR
95
- );
96
- }
97
-
98
80
define ( 'IMAGE_PRIORITIZER_VERSION ' , $ version );
99
81
100
82
require_once __DIR__ . '/helper.php ' ;
You can’t perform that action at this time.
0 commit comments