Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'i18n-vendor'
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Mar 5, 2017
2 parents fb6f368 + 4f0a685 commit ae0a6a3
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ cache:
apt: true
directories:
- $HOME/.composer/cache/files
- $HOME/node_modules
- node_modules

addons:
Expand Down Expand Up @@ -62,6 +63,10 @@ before_install:
- tnw-install-wordpress
- tnw-prepare-codeception

# For grunt tasks
- nvm install stable
- npm update -g npm

# Build the production plugin
- travis_retry composer build
# Activate the plugin
Expand Down
30 changes: 23 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,17 @@ module.exports = function ( grunt ) {
target: {
files: {
src: [
'src/.*',
'uninstall.php',
'<%= pkg.name %>.php'
'*.php',
'**/*.php',
'*.phtml',
'**/*.phtml',
'*.html',
'**/*.html',
'!assets/**',
'!build/**',
'!node_modules/**',
'!release/**',
'!tests/**'
]
}
}
Expand All @@ -42,9 +50,17 @@ module.exports = function ( grunt ) {
target: {
options: {
include: [
'src/.*',
'uninstall.php',
'<%= pkg.name %>.php'
'*.php',
'**/*.php',
'*.phtml',
'**/*.phtml',
'*.html',
'**/*.html',
'!assets/**',
'!build/**',
'!node_modules/**',
'!release/**',
'!tests/**'
],
mainFile: '<%= pkg.name %>.php',
potHeaders: {
Expand Down Expand Up @@ -205,7 +221,7 @@ module.exports = function ( grunt ) {
grunt.registerTask( 'i18n', ['addtextdomain', 'makepot'] );
grunt.registerTask( 'pre-tag', ['version', 'i18n'] );
grunt.registerTask( 'pre-build', ['clean:pre-build'] );
grunt.registerTask( 'build', ['copy:build', 'compress:build'] );
grunt.registerTask( 'build', ['addtextdomain', 'copy:build', 'compress:build'] );

grunt.util.linefeed = '\n';

Expand Down
23 changes: 19 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ I make [Typist Tech](https://www.typist.tech/) also.

= Support =

We hang out in the WordPress support forum for this plugin at [https://wordpress.org/support/plugin/wp-cloudflare-guard](https://wordpress.org/support/plugin/wp-cloudflare-guard). However, to save time so that we can spend it on development, please read the plugin's FAQs at [https://wordpress.org/plugins/wp-cloudflare-guard/faq/](https://wordpress.org/plugins/wp-cloudflare-guard/faq/). Before going there, and ensure that you have updated WP Cloudflare Guard and WordPress to the latest released version.
We hang out in the WordPress [support forum](https://wordpress.org/support/plugin/wp-cloudflare-guard) for this plugin. However, to save time so that we can spend it on development, please read the plugin's [FAQs](https://wordpress.org/plugins/wp-cloudflare-guard/faq/) first. Before going there, and ensure that you have updated WP Cloudflare Guard and WordPress to the latest released version and installed PHP 7 or later.

== Installation ==

Expand All @@ -75,8 +75,16 @@ We hang out in the WordPress support forum for this plugin at [https://wordpress
1. Upload it to `wp-content/plugins/`
1. Go to the WordPress plugin menu and activate it

= Via WP CLI =

1. `$ wp plugin install wp-cloudflare-guard --activate`

== Frequently Asked Questions ==

= What version of PHP do I need? =

PHP 7 or later.

= Is this plugin written by Cloudflare, Inc.? =

No.
Expand All @@ -88,7 +96,7 @@ Yes, all of them work together without problems.

* Install [WP Cloudflare Guard](https://wordpress.org/plugins/wp-cloudflare-guard/) if you want to protect your site from bad IPs
* Install [Sunny](https://wordpress.org/plugins/sunny/) if you want to purge CloudFlare's cache automatically
* Install the [offical plugin](https://wordpress.org/plugins/cloudflare/) if you can't see the real IP from visitors
* Install the [official plugin](https://wordpress.org/plugins/cloudflare/) if you can't see the real IP from visitors

= What if WP Cloudflare Guard blacklisted my IP? =

Expand All @@ -97,9 +105,13 @@ Yes, all of them work together without problems.
1. Go `Firewall`
1. Release you IP under `Access Rules`

= What version of PHP do I need? =
= Does this plugin available in my language? =

PHP 7 or later.
English works out of the box.

Traditional Chinese language pack is available [here](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard/language-packs).

You can add your own translation at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard).

= How to get support? =

Expand All @@ -111,6 +123,9 @@ Make sure you have read the plugin's FAQs at [https://wordpress.org/plugins/wp-c

If you like the plugin, feel free to [rate it](https://wordpress.org/support/plugin/wp-cloudflare-guard/reviews/#new-post) or [donate via PayPal](https://www.typist.tech/donate/wp-cloudflare-guard/). Thanks a lot! :)

You can add your own translation at [translate.wordpress.org](https://translate.wordpress.org/projects/wp-plugins/wp-cloudflare-guard).


Besides, `WP Cloudflare Guard` is open source and hosted on [GitHub](https://github.com/TypistTech/wp-cloudflare-guard). Feel free to make pull requests.

= What if I want more? =
Expand Down

0 comments on commit ae0a6a3

Please sign in to comment.