Skip to content

Update text domain and add WPCS for i18n #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ jspm_packages/
# Assets build directory
assets/build/**/*.css
assets/build/**/*.map
assets/build/**/*.js
assets/build/**/*.js
/vendor/
26 changes: 26 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<ruleset>
<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>

<!-- Exclude package files -->
<exclude-pattern>/vendor/*</exclude-pattern>
<exclude-pattern>/node_modules/*</exclude-pattern>

<!-- Confirm PHP compat. -->
<config name="testVersion" value="7.4-"/>
<rule ref="PHPCompatibilityWP" />

<!-- Display sniff code -->
<arg value="s"/>

<rule ref="WordPress" phpcbf-only="true" />
<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="secure-custom-fields"/>
</property>
</properties>
</rule>
</ruleset>
554 changes: 267 additions & 287 deletions acf.php

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "wordpress/secure-custom-fields",
"description": "Secure Custom Fields",
"type": "project",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "WordPress.org"
}
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0",
"phpcompatibility/phpcompatibility-wp": "^2.1"
}
}
Loading