Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit b5adc18

Browse files
author
Alexandre Germain
committed
class-admin.php linted
Added nonce everywhere. Todo: generate nonce in other files of required, & change filesystem access method.
1 parent 1f198b2 commit b5adc18

32 files changed

+2348
-2079
lines changed

Gruntfile.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,18 @@ module.exports = function gruntInit( grunt ) {
342342
},
343343
},
344344
},
345+
phpcbf: {
346+
options: {
347+
standard: 'lint/phpcs.xml'
348+
},
349+
files: {
350+
src: [
351+
'class/**/*.php',
352+
'templates/src/**/*.php',
353+
'*.php',
354+
],
355+
},
356+
},
345357
};
346358
if(typeof gruntLocalconfig !== 'undefined' && typeof gruntLocalconfig.svn_path !== 'undefined'){
347359
gruntConfig.rsync = {
@@ -355,6 +367,7 @@ module.exports = function gruntInit( grunt ) {
355367
'node_modules',
356368
'test',
357369
'templates/src',
370+
'js/src',
358371
'lint',
359372
'*.log',
360373
'docs',
@@ -386,6 +399,7 @@ module.exports = function gruntInit( grunt ) {
386399
grunt.loadNpmTasks( 'grunt-wp-readme-to-markdown' );
387400
grunt.loadNpmTasks( 'grunt-rsync' );
388401
grunt.loadNpmTasks( 'grunt-babel' );
402+
grunt.loadNpmTasks('grunt-phpcbf');
389403

390404
// Default task(s).
391405
grunt.registerTask( 'bumpVersionDo', '', function bumpVersionDo() {
@@ -440,6 +454,7 @@ module.exports = function gruntInit( grunt ) {
440454
'versionUpgrade',
441455
'Do the process to change version number',
442456
[
457+
'phpcbf',
443458
'eslint:strict_browser',
444459
//'eslint:strict_nodejs',
445460
'lesslint:strict',

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ For bug repports or unexpected behaviors, please see the dedicated [WordPress su
7878

7979
## Changelog ##
8080

81+
### 3.0.2 ###
82+
* FIX Singleton structure
83+
8184
### 3.0.1 ###
8285
* FIX Fatal error in Resource management (see [the forum thread](https://wordpress.org/support/topic/php-fatal-error-115/))
8386
* FIX Theme Editor

0 commit comments

Comments
 (0)