View heartbeat_allowed.php
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: Allow Heartbeat for Gravity Forms on WP Enting | |
* Plugin URI: https://gist.github.com/desrosj/409a17b718f07d1190b7 | |
* Description: Allow the Heartbeat API on Gravity Form related edit pages on WP Engine. Fork of https://gist.github.com/JPry/b1f6c55a5d5337557f97 | |
* Version: 1.0 | |
* Author: Jonathan Desrosiers | |
* Author URI: http://jonathandesrosiers.com/ | |
* License: GPL2 | |
*/ |
View dbDelta Failing Tests.txt
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
vagrant@vvv:/srv/www/wordpress-develop/public_html$ phpunit --group dbdelta | |
Installing... | |
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml | |
Not running ajax tests. To execute these, use --group ajax. | |
Not running ms-files tests. To execute these, use --group ms-files. | |
Not running external-http tests. To execute these, use --group external-http. | |
PHPUnit 5.7.16 by Sebastian Bergmann and contributors. | |
WordPress database error Specified key was too long; max key length is 1000 bytes for query | |
CREATE TABLE wptests_dbdelta_test ( |
View constant-tests.php
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
class Tests_For_Stupid_Constants extends WP_UnitTestCase { | |
/** | |
* Do not preserve global state between test methods. | |
* | |
* @var bool | |
*/ | |
protected $preserveGlobalState = false; | |
/** |
View vvv-custom.yml
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
--- | |
sites: | |
wordpress-default: | |
repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git | |
hosts: | |
- local.wordpress.test | |
nginx_upstream: php72 | |
wordpress-develop: | |
repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-develop.git |
View vvv-custom.yml
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
--- | |
sites: | |
wordpress-default: | |
repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git | |
hosts: | |
- local.wordpress.test | |
wordpress-develop: | |
repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop.git | |
hosts: |
View image-source-sets.php
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 | |
/** | |
* Get a list of default source sets. | |
* | |
* @since 1.0.0 | |
* | |
* @return array Default source sets. | |
*/ | |
function bu_banners_get_default_source_sets() { | |
$source_sets = array( |
View admin-notice-variations.php
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 | |
function demo_notice_add() { | |
?> | |
<div class="notice"><p>This is a notice without a type.</p></div> | |
<div class="notice is-dismissible"><p>This is a dismissible notice without a type.</p></div> | |
<div class="updated"><p>Your action succeeded!</p><p><a href="" class="button">Test Button</a></p></div> | |
<div class="error"><p>My error notice text1</p></div> | |
<div class="notice notice-success is-dismissible"><p>My dismissible success notice text</p></div> |
View Getting all posts without a no LIMIT query
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 | |
$posts = array(); | |
$args = array( | |
'posts_per_page' => 100, | |
'offset' => 0, | |
'post_type' => 'post', | |
'post_status' => 'publish', | |
); |
View change-auto-update-state.php
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 | |
/** | |
* Changes the auto-update status for plugins and themes. | |
* | |
* @param string $name The name of the plugin or theme to change the auto-update status of. For themes, this should be | |
* the theme slug (`twentytwentyone`). For plugins, this should be the path to the plugin file | |
* relative to the plugins directory (`gutenberg/gutenberg.php`). | |
* @param string $type The type of item to update. Accepted values are `plugin` or `theme`. Default is `plugin`. | |
* @param bool $enable Whether to enable (true) or disable (false). Default is true, or enable. | |
* @return bool True if the value was updated, false otherwise. |
View discord-icon-twenty-twenty-one.php
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 | |
/** | |
* Add discord.com to the list of domains mapped to social icons. | |
* | |
* @param array $social_icons_map Array of default social icons. | |
* @return array Updated array of social icons. | |
*/ | |
function mycode_social_icons_map( $social_icons_map ) { | |
$social_icons_map['discord'] = array( |
OlderNewer