Skip to content

Commit 27331bf

Browse files
authored
Update text domain and add WPCS for i18n (#10)
1 parent 134e4cb commit 27331bf

File tree

195 files changed

+46857
-3477
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+46857
-3477
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ jspm_packages/
4141
# Assets build directory
4242
assets/build/**/*.css
4343
assets/build/**/*.map
44-
assets/build/**/*.js
44+
assets/build/**/*.js
45+
/vendor/

.phpcs.xml.dist

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<ruleset>
3+
<!-- Check all PHP files in directory tree by default. -->
4+
<arg name="extensions" value="php"/>
5+
<file>.</file>
6+
7+
<!-- Exclude package files -->
8+
<exclude-pattern>/vendor/*</exclude-pattern>
9+
<exclude-pattern>/node_modules/*</exclude-pattern>
10+
11+
<!-- Confirm PHP compat. -->
12+
<config name="testVersion" value="7.4-"/>
13+
<rule ref="PHPCompatibilityWP" />
14+
15+
<!-- Display sniff code -->
16+
<arg value="s"/>
17+
18+
<rule ref="WordPress" phpcbf-only="true" />
19+
<rule ref="WordPress.WP.I18n">
20+
<properties>
21+
<property name="text_domain" type="array">
22+
<element value="secure-custom-fields"/>
23+
</property>
24+
</properties>
25+
</rule>
26+
</ruleset>

acf.php

Lines changed: 267 additions & 287 deletions
Large diffs are not rendered by default.

composer.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "wordpress/secure-custom-fields",
3+
"description": "Secure Custom Fields",
4+
"type": "project",
5+
"license": "GPL-2.0-or-later",
6+
"authors": [
7+
{
8+
"name": "WordPress.org"
9+
}
10+
],
11+
"config": {
12+
"allow-plugins": {
13+
"dealerdirect/phpcodesniffer-composer-installer": true
14+
}
15+
},
16+
"require-dev": {
17+
"wp-coding-standards/wpcs": "^3.0",
18+
"phpcompatibility/phpcompatibility-wp": "^2.1"
19+
}
20+
}

0 commit comments

Comments
 (0)