File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ The API key can also be configured in wp-config.php. You can add a TINY_API_KEY
7070
7171== Changelog ==
7272
73- = 1.3.0
73+ = 1.3.0 =
7474* Improved bulk compressions from media library. You can now also bulk compress your whole media library in one step.
7575* Intelligent detection if file is already compressed or was altered by another plugin and should be recompressed.
7676
Original file line number Diff line number Diff line change 157157 jQuery ( '#tiny-compress-status' ) . load ( ajaxurl + '?action=tiny_compress_status' )
158158 }
159159
160- jQuery ( '.tiny-notice a' ) . click ( dismiss_notice )
160+ jQuery ( '.tiny-notice.is-dismissible a' ) . click ( dismiss_notice )
161161 jQuery ( function ( ) {
162- jQuery ( '.tiny-notice button' ) . unbind ( 'click' ) . click ( dismiss_notice )
162+ jQuery ( '.tiny-notice.is-dismissible button' ) . unbind ( 'click' ) . click ( dismiss_notice )
163163 } )
164164
165165 window . tinyBulkCompress = bulk_compress
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ public function testShouldShowNoNoticeIfApiKeyIsSet() {
4141 $ this ->assertEquals (0 , count ($ elements ));
4242 }
4343
44+ public function testNoApiKeyNoticeShouldLinkToSettings () {
45+ self ::$ driver ->findElement (WebDriverBy::cssSelector ('.error a ' ))->click ();
46+ $ this ->assertStringEndsWith ('options-media.php#tiny-compress-images ' , self ::$ driver ->getCurrentURL ());
47+ }
48+
49+
4450 public function testDefaultSizesBeingCompressed () {
4551 $ elements = self ::$ driver ->findElements (
4652 WebDriverBy::xpath ('//input[@type="checkbox" and starts-with(@name, "tinypng_sizes") and @checked="checked"] ' ));
You can’t perform that action at this time.
0 commit comments