Skip to content

Commit f59d6c1

Browse files
Add pipeline badges
1 parent a138694 commit f59d6c1

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# TinyPNG - JPEG, PNG & WebP image compression for WordPress
22

3+
[![Integration Tests](https://github.com/tinify/wordpress-plugin/actions/workflows/integration-tests.yml/badge.svg)](https://github.com/tinify/wordpress-plugin/actions/workflows/integration-tests.yml)
4+
[![Check and Test](https://github.com/tinify/wordpress-plugin/actions/workflows/check-test.yml/badge.svg)](https://github.com/tinify/wordpress-plugin/actions/workflows/check-test.yml)
5+
36
Make your website faster by optimizing your JPEG, PNG, and WebP images.
47

58
This plugin automatically optimizes your images by integrating with the

phpcs.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<?xml version="1.0"?>
22
<ruleset>
3-
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs"/>
3+
<config name="installed_paths" value="vendor/wp-coding-standards/wpcs" />
44

5-
<rule ref="WordPress-Core"/>
5+
<rule ref="WordPress-Core" />
66
<rule ref="Generic.Files.LineLength">
77
<properties>
8-
<property name="lineLimit" value="100"/>
9-
<property name="absoluteLineLimit" value="100"/>
8+
<property name="lineLimit" value="100" />
9+
<property name="absoluteLineLimit" value="100" />
10+
<property name="ignoreComments" value="true" />
1011
</properties>
1112
<exclude-pattern>src/views</exclude-pattern>
1213
</rule>
1314
<rule ref="WordPress.WP.I18n.UnorderedPlaceholders">
1415
<severity>0</severity>
1516
</rule>
1617

17-
<file>tiny-compress-images.php</file>
1818
<file>src</file>
1919
<file>test</file>
2020
<exclude-pattern>src/css</exclude-pattern>
2121
<exclude-pattern>src/data</exclude-pattern>
2222
<exclude-pattern>src/js</exclude-pattern>
2323
<exclude-pattern>vendor</exclude-pattern>
2424
<exclude-pattern>test/</exclude-pattern>
25-
</ruleset>
25+
</ruleset>

src/class-tiny-notices.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,10 @@ public function show( $name, $message, $klass = 'error', $dismissible = true ) {
147147
}
148148

149149
$css = implode( ' ', $css );
150-
$plugin_name = esc_html__( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' );
150+
$plugin_name = esc_html__(
151+
'TinyPNG - JPEG, PNG & WebP image compression',
152+
'tiny-compress-images'
153+
);
151154

152155
add_action( 'admin_notices',
153156
function() use ( $css, $name, $plugin_name, $message, $add ) {
@@ -268,7 +271,10 @@ public function incompatible_plugins_notice() {
268271
private function show_incompatible_plugins( $incompatible_plugins ) {
269272
$notice = '<div class="error notice tiny-notice incompatible-plugins">';
270273
$notice .= '<h3>';
271-
$notice .= esc_html__( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' );
274+
$notice .= esc_html__(
275+
'TinyPNG - JPEG, PNG & WebP image compression',
276+
'tiny-compress-images'
277+
);
272278
$notice .= '</h3>';
273279
$notice .= '<p>';
274280
$notice .= esc_html__(
@@ -278,7 +284,10 @@ private function show_incompatible_plugins( $incompatible_plugins ) {
278284
$notice .= '</p>';
279285
$notice .= '<table>';
280286
$notice .= '<tr><td class="bullet">•</td><td class="name">';
281-
$notice .= esc_html__( 'TinyPNG - JPEG, PNG & WebP image compression', 'tiny-compress-images' );
287+
$notice .= esc_html__(
288+
'TinyPNG - JPEG, PNG & WebP image compression',
289+
'tiny-compress-images'
290+
);
282291
$notice .= '</td><td></td></tr>';
283292
foreach ( $incompatible_plugins as $name => $file ) {
284293
$notice .= '<tr><td class="bullet">•</td><td class="name">';

0 commit comments

Comments
 (0)