Skip to content
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor/
42 changes: 42 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<ruleset>

<!-- Load configuration. -->
<config name="minimum_supported_wp_version" value="3.1" />
<config name="testVersion" value="5.2.4-"/>

<!-- Check all PHP files in directory tree by default. -->
<arg name="extensions" value="php"/>
<file>.</file>

<!-- Show sniff codes in all reports -->
<arg value="s"/>

<arg name="colors"/>

<!-- Ignore git, in case someone created a branch ending in ".php" or something -->
<exclude-pattern>/.git/*</exclude-pattern>

<!-- Ignore external libraries -->
<exclude-pattern>/node_modules/*</exclude-pattern>
<exclude-pattern>/vendor/*</exclude-pattern>

<!-- Default ruleset. -->
<rule ref="Jetpack" />

<rule ref="WordPress.WP.I18n">
<properties>
<property name="text_domain" type="array">
<element value="wp-super-cache"/>
</property>
</properties>
</rule>

<rule ref="WordPress.Utils.I18nTextDomainFixer">
<properties>
<property name="old_text_domain" type="array" />
<property name="new_text_domain" value="wp-super-cache" />
</properties>
</rule>

</ruleset>
3 changes: 1 addition & 2 deletions admin/class-wp-super-cache-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
/**
* The class responsible for setting up required files for caching.
*/
require_once plugin_dir_path( dirname( __FILE__ ) ) . 'includes/class-wp-super-cache-setup.php';

require_once plugin_dir_path( __DIR__ ) . 'includes/class-wp-super-cache-setup.php';

/**
* The admin-specific functionality of the plugin.
Expand Down
11 changes: 11 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "automattic/wp-super-cache",
"description": "Very fast caching plugin for WordPress.",
"type": "wordpress-plugin",
"require-dev": {
"automattic/jetpack-codesniffer": "^2.1"
},
"license": "GPL-2.0-or-later",
"minimum-stability": "stable",
"require": {}
}
Loading