File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,10 @@ protected function has_postbox_container() {
8383 return wordpress_version () >= 35 ;
8484 }
8585
86+ protected function has_medium_large_size () {
87+ return wordpress_version () > 44 ;
88+ }
89+
8690 protected function postbox_dimension_selector () {
8791 $ version = wordpress_version ();
8892 if ( $ version < 37 ) {
Original file line number Diff line number Diff line change @@ -168,6 +168,9 @@ public function test_settings_should_enable_all_sizes_by_default() {
168168 $ this ->assertContains ( 'tinypng_sizes[0] ' , $ enabled_sizes );
169169 $ this ->assertContains ( 'tinypng_sizes[thumbnail] ' , $ enabled_sizes );
170170 $ this ->assertContains ( 'tinypng_sizes[medium] ' , $ enabled_sizes );
171+ if ( $ this ->has_medium_large_size () ) {
172+ $ this ->assertContains ( 'tinypng_sizes[medium_large] ' , $ enabled_sizes );
173+ }
171174 $ this ->assertContains ( 'tinypng_sizes[large] ' , $ enabled_sizes );
172175 }
173176
You can’t perform that action at this time.
0 commit comments