This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="AJF Coding Standards"> | |
<description>A custom ruleset to take in account both WordPress and personal standards.</description> | |
<!-- Show progress and sniff codes in all reports --> | |
<arg value="ps"/> | |
<arg value="sp"/> | |
<arg name="colors"/> | |
<!-- Only check PHP files. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Kludge to remove hooks when I can't pass the precise object instance. | |
* | |
* @param string $hook_name The filter hook to which the function to be removed is hooked. | |
* @param callable|string|array $callback The callback to be removed from running when the filter is applied. | |
* This method can be called unconditionally to speculatively remove | |
* a callback that may or may not exist. | |
* @param int $priority The exact priority used when adding the original filter callback. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: RAU Edge Case - Defining Constants in main plugin file. | |
* Description: Defining Constants in main plugin file. | |
* Version: 0.1.0 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 6.2 | |
* Requires PHP: 7.1 | |
* Gist Plugin URI: https://gist.github.com/afragen/89cb21b5de301b28e65ceb56d264659a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: RAU Edge Case - Defining Class in main plugin file. | |
* Description: Defining class in main plugin file. | |
* Version: 0.1.0 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 6.2 | |
* Requires PHP: 7.1 | |
* Gist Plugin URI: https://gist.github.com/afragen/efd22a5bcd527374a7843dec24463f47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<ruleset name="WordPress-Beta-Tester"> | |
<description>Keep long array syntax.</description> | |
<!-- Include main ruleset.xml --> | |
<rule ref="/Users/afragen/code-standards/ruleset.xml"/> | |
<rule ref="Generic.Arrays.DisallowShortArraySyntax" /> | |
<!-- Use only long arrays --> | |
<rule ref="Generic.Arrays"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd .. | |
mv ./public/wp-config.php . | |
rm -rf ./public | |
git clone git://core.git.wordpress.org/ public | |
ln -sv $PWD/wp-config.php $PWD/public/wp-config.php | |
curl -o ./public/.gitignore https://gist.githubusercontent.com/afragen/43dfff563e942353d866c81904498cb2/raw/.gitignore | |
curl -o setup-phpunit.sh https://raw.githubusercontent.com/afragen/setup-phpunit/master/setup-phpunit.sh | |
curl -o apply-trac-patch.sh https://gist.githubusercontent.com/afragen/977d765414189d5f5fae42215fe92a27/raw/apply-trac-patch.sh | |
bash setup-phpunit.sh --wp-version=trunk --wp-ts-version=trunk | |
cd public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"core": "WordPress/wordpress-develop#trunk", | |
"phpVersion": "8.1", | |
"plugins": [ | |
"https://downloads.wordpress.org/plugin/query-monitor.zip" | |
], | |
"port": 8888, | |
"testsPort": 8889, | |
"config": { | |
"WP_DEBUG": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Stop success email from auto-updates. | |
* | |
* @package StopAutoUpdateSuccessEmail | |
* | |
* Plugin Name: Stop Auto-update Success Email | |
* Plugin URI: https://gist.github.com/afragen/e2f40ed2e71e590a127e8adc1db05948 | |
* Description: Stop success email from auto-updates. | |
* Version: 0.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias wp-git-core="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/core-git-wp.sh)\";cd ." | |
alias wp-git-develop="sh -c \"\$(curl -fsSL https://gist.github.com/afragen/e1aa3ffccf1a73618ee6e756bd95d297/raw/develop-git-wp.sh)\";cd ." | |
alias local-socket="SOCKET=\$(mysqld --verbose --help | grep ^socket | awk '{print \$2, \$3, \$4}');ln -sfv \$SOCKET /tmp/mysql.sock" | |
alias brewup="brew update && brew upgrade && brew cleanup && brew doctor" | |
#lsof -i | grep LISTEN | grep 'nginx\|httpd' | |
alias http-listen="lsof -i | grep LISTEN | grep 'nginx\|httpd'" |