Skip to content

Commit ada954f

Browse files
committed
Merge branch 'dev'
Conflicts: wp-tevko-responsive-images.php
2 parents b3578e7 + 4bc3295 commit ada954f

File tree

9 files changed

+428
-177
lines changed

9 files changed

+428
-177
lines changed

.jshintrc

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"boss": true,
3+
"curly": true,
4+
"eqeqeq": true,
5+
"eqnull": true,
6+
"es3": true,
7+
"expr": true,
8+
"immed": true,
9+
"noarg": true,
10+
"onevar": true,
11+
"quotmark": "single",
12+
"trailing": true,
13+
"undef": true,
14+
"unused": true,
15+
16+
"browser": true,
17+
18+
"globals": {
19+
"_": false,
20+
"Backbone": false,
21+
"jQuery": false,
22+
"JSON": false,
23+
"wp": false
24+
}
25+
}

.linthub.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
go:
2+
lint: false
3+
php:
4+
lint: true
5+
config: ruleset.xml
6+
java:
7+
lint: false
8+
scala:
9+
lint: false
10+
shell:
11+
lint: false
12+
css:
13+
lint: true
14+
js:
15+
lint: jshint # jshint (default) | eslint | false
16+
config: .jshintrc

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ php:
66
- 5.4
77
- 5.5
88
- 5.6
9+
- 7.0
910

1011
env:
1112
- WP_VERSION=latest WP_MULTISITE=0
@@ -17,6 +18,11 @@ env:
1718
- WP_VERSION=4.0 WP_MULTISITE=0
1819
- WP_VERSION=4.0 WP_MULTISITE=1
1920

21+
allow_failures:
22+
- php: 7.0
23+
24+
fast_finish: true
25+
2026
before_script:
2127
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
2228

js/wp-tevko-responsive-images.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

readme.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
RICG-responsive-images
22
---
33

4-
![Build Status](https://travis-ci.org/ResponsiveImagesCG/wp-tevko-responsive-images.svg)
4+
[![Build Status](https://travis-ci.org/ResponsiveImagesCG/wp-tevko-responsive-images.svg?branch=dev)](https://travis-ci.org/ResponsiveImagesCG/wp-tevko-responsive-images)
55

66
Bringing automatic default responsive images to WordPress.
77

@@ -139,10 +139,20 @@ The only external dependency included in this plugin is [Picturefill](http://sco
139139
We use a hook because if you attempt to dequeue a script before it's enqueued, wp_dequeue_script has no effect. (If it's still being loaded, you may need to specify a [priority](http://codex.wordpress.org/Function_Reference/add_action).)
140140

141141
## Version
142-
2.4.0
142+
143+
2.5.0
143144

144145
## Changelog
145146

147+
- Responsify all post images by adding `srcset` and `sizes` through a display filter.
148+
- Improve method used to build paths in `tevkori_get_srcset_array()`
149+
- Adds linthub config files
150+
- Returns single source arrays in `tevkori_get_srcset_array()`
151+
- Add tests for PHP7 to our Travis matrix
152+
- Add test coverage for `tevkori_filter_attachment_image_attributes()`
153+
154+
**2.4.0**
155+
146156
- Added filter for tevkori_get_sizes, with tests
147157
- Added Composer support
148158
- Compare aspect ratio in relative values, not absolute values

readme.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://app.etapestry.com/hosted/BoweryResidentsCommittee/OnlineDon
44
Tags: Responsive, Images, Responsive Images, SRCSET, Picturefill
55
Requires at least: 4.1
66
Tested up to: 4.3
7-
Stable tag: 2.4.0
7+
Stable tag: 2.5.0
88
License: GPLv2
99
License URI: http://www.gnu.org/licenses/gpl-2.0.txt
1010

@@ -26,6 +26,14 @@ This plugin works by including all available image sizes for each image upload.
2626

2727
== Changelog ==
2828

29+
= 2.5.0 =
30+
* Responsify all post images by adding `srcset` and `sizes` through a display filter.
31+
* Improve method used to build paths in `tevkori_get_srcset_array()`
32+
* Adds linthub config files
33+
* Returns single source arrays in `tevkori_get_srcset_array()`
34+
* Add tests for PHP7 to our Travis matrix
35+
* Add test coverage for `tevkori_filter_attachment_image_attributes()`
36+
2937
= 2.4.0 =
3038
* Added filter for tevkori_get_sizes, with tests
3139
* Added Composer support

ruleset.xml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="WordPress Core">
3+
<description>Non-controversial generally-agreed upon WordPress Coding Standards</description>
4+
5+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#brace-style -->
6+
<rule ref="Generic.ControlStructures.InlineControlStructure" />
7+
<rule ref="Squiz.ControlStructures.ControlSignature" />
8+
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
9+
<severity>0</severity>
10+
</rule>
11+
12+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#remove-trailing-spaces -->
13+
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/>
14+
15+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#no-shorthand-php-tags -->
16+
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
17+
18+
<!-- important to prevent issues with content being sent before headers -->
19+
<rule ref="Generic.Files.ByteOrderMark"/>
20+
21+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
22+
<rule ref="Generic.PHP.LowerCaseConstant"/>
23+
24+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#indentation -->
25+
<arg name="tab-width" value="4"/>
26+
<rule ref="Generic.WhiteSpace.DisallowSpaceIndent"/>
27+
<rule ref="Generic.WhiteSpace.ScopeIndent">
28+
<properties>
29+
<property name="indent" value="4"/>
30+
<property name="tabIndent" value="true"/>
31+
</properties>
32+
</rule>
33+
34+
<!-- http://make.wordpress.org/core/handbook/coding-standards/php/#error-control-operator -->
35+
<rule ref="Generic.PHP.NoSilencedErrors" />
36+
37+
<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
38+
<rule ref="Squiz.Strings.DoubleQuoteUsage.ContainsVar">
39+
<severity>0</severity>
40+
</rule>
41+
42+
<rule ref="Generic.PHP.LowerCaseKeyword"/>
43+
44+
<rule ref="Generic.Files.LineEndings">
45+
<properties>
46+
<property name="eolChar" value="\n"/>
47+
</properties>
48+
</rule>
49+
50+
51+
<rule ref="Generic.Files.EndFileNewline"/>
52+
53+
<!-- https://make.wordpress.org/core/handbook/coding-standards/php/#naming-conventions -->
54+
<rule ref="Generic.Files.LowercasedFilename"/>
55+
56+
<!-- https://make.wordpress.org/core/handbook/coding-standards/php/#space-usage -->
57+
<rule ref="Generic.Formatting.SpaceAfterCast"/>
58+
59+
<!-- https://make.wordpress.org/core/handbook/coding-standards/php/#brace-style -->
60+
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/>
61+
62+
<rule ref="PEAR.Functions.FunctionCallSignature">
63+
<properties>
64+
<property name="requiredSpacesAfterOpen" value="1" />
65+
<property name="requiredSpacesBeforeClose" value="1" />
66+
</properties>
67+
</rule>
68+
<rule ref="PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket">
69+
<severity>0</severity>
70+
</rule>
71+
<rule ref="PEAR.Functions.FunctionCallSignature.CloseBracketLine">
72+
<severity>0</severity>
73+
</rule>
74+
75+
<rule ref="WordPress.Arrays.ArrayDeclaration">
76+
<exclude name="WordPress.Arrays.ArrayDeclaration.SingleLineNotAllowed" />
77+
</rule>
78+
<rule ref="WordPress.Arrays.ArrayKeySpacingRestrictions"/>
79+
<rule ref="WordPress.Classes.ValidClassName"/>
80+
<rule ref="WordPress.Files.FileName"/>
81+
<rule ref="WordPress.Functions.FunctionDeclarationArgumentSpacing"/>
82+
<rule ref="WordPress.NamingConventions.ValidFunctionName"/>
83+
<rule ref="WordPress.WhiteSpace.ControlStructureSpacing"/>
84+
<rule ref="WordPress.WhiteSpace.OperatorSpacing"/>
85+
<rule ref="WordPress.WhiteSpace.CastStructureSpacing"/>
86+
<rule ref="WordPress.PHP.YodaConditions"/>
87+
88+
</ruleset>

0 commit comments

Comments
 (0)