File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -183,12 +183,16 @@ public function render_sizes() {
183183 echo self ::translate_escape ('Remember each additional image size will affect your TinyPNG monthly usage ' ) . "! " ;?>
184184<input type="hidden" name="<?php echo self ::get_prefixed_name ('sizes[ ' . self ::DUMMY_SIZE .'] ' ); ?> " value="on"/></p>
185185<?php
186+ $ original_enabled = false ;
186187 foreach ($ this ->get_sizes () as $ size => $ option ) {
188+ if ($ size === Tiny_Metadata::ORIGINAL ) {
189+ $ original_enabled = $ option ['tinify ' ];
190+ }
187191 $ this ->render_size_checkbox ($ size , $ option );
188192 }
189193
190194 echo '<div id="tiny-image-sizes-notices"> ' ;
191- $ this ->render_image_sizes_notices (count (self ::get_active_tinify_sizes ()), $ this -> get_sizes ()[Tiny_Metadata:: ORIGINAL ][ ' tinify ' ] );
195+ $ this ->render_image_sizes_notices (count (self ::get_active_tinify_sizes ()), $ original_enabled );
192196 echo '</div> ' ;
193197 }
194198
You can’t perform that action at this time.
0 commit comments