File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class Optimizer {
3939 const RESOURCE_FILES = 'files ' ;
4040 const MAX_ALLOWED_RESOURCES = 5 ;
4141
42- const VERSION = '1.0.2 ' ;
42+ const VERSION = '1.0.3 ' ;
4343 /**
4444 * @var string
4545 */
@@ -252,7 +252,7 @@ public static function prepare_data( $resource, $args ) {
252252 case Optimizer::RESOURCE_URLS :
253253 $ index = 0 ;
254254 foreach ( $ resource as $ url ) {
255- if ( $ index === self ::MAX_ALLOWED_RESOURCES - 1 ) {
255+ if ( $ index === self ::MAX_ALLOWED_RESOURCES ) {
256256 break ;
257257 }
258258 $ args [ 'url ' . ( $ index + 1 ) ] = $ url ;
@@ -262,7 +262,7 @@ public static function prepare_data( $resource, $args ) {
262262 case Optimizer::RESOURCE_FILES :
263263 $ index = 0 ;
264264 foreach ( $ resource as $ path ) {
265- if ( $ index === self ::MAX_ALLOWED_RESOURCES - 1 ) {
265+ if ( $ index === self ::MAX_ALLOWED_RESOURCES ) {
266266 break ;
267267 }
268268 $ files [ 'file ' . ( $ index + 1 ) ] = $ path ;
You can’t perform that action at this time.
0 commit comments