Skip to content

Commit 056e130

Browse files
committed
added composer support
1 parent a6c75ed commit 056e130

File tree

5 files changed

+171
-2
lines changed

5 files changed

+171
-2
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# https://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[{.jshintrc,*.json,*.yml}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{*.txt,wp-config-sample.php}]
21+
end_of_line = crlf

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
vendor

composer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "pfefferle/wordpress-uf2-feed",
3+
"description": "provides a Microformats2 JSON Feed for every WordPress URL.",
4+
"type": "wordpress-plugin",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Matthias Pfefferle",
9+
"homepage": "http://notiz.blog"
10+
}
11+
],
12+
"require": {
13+
"php": ">=5.6.0",
14+
"composer/installers": "~1.0"
15+
},
16+
"extra": {
17+
"installer-name": "uf2-feed"
18+
}
19+
}

composer.lock

Lines changed: 128 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

uf2-feed.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ public static function do_feed_uf2( $for_comments ) {
7878
$parser = new Parser( $response, $current_url );
7979

8080
// also support uf1?
81-
$parseUf1 = apply_filters( 'uf2_feed_support_uf1', false );
81+
$parse_uf1 = apply_filters( 'uf2_feed_support_uf1', false );
8282

83-
$mf_array = $parser->parse( $parseUf1 );
83+
$mf_array = $parser->parse( $parse_uf1 );
8484

8585
// filter output
8686
$json = apply_filters( 'uf2_feed_array', $mf_array );

0 commit comments

Comments
 (0)