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 | |
/** | |
* Shim to account for WordPress 5.8 changes to widgets screen. | |
* | |
* This code was written to avoid the block widgets screen from throwing | |
* notices in WordPress 5.8 while allowing custom block plugins to support | |
* WordPress 5.1 and earlier. | |
* | |
* The original gist was a private gist with identifying information of the | |
* the plugin I was working on for my employer at the time. I've republished |
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: Unlimited Posts For Admins | |
* Description: Allow administrators to view all posts on the posts archive page. | |
* Version: 1.0.0 | |
* Update URI: false | |
* Plugin URI: https://aus.social/@peterwilsoncc/111094215185643333 | |
*/ | |
namespace PWCC\UnlimitedPostsForAdmins; |
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: Remove orderby when counting comments. | |
*/ | |
namespace PWCC\Test58368; | |
/** | |
* Remove orderby when counting comments. | |
* |
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: Featured Image block bugfix for WP 6.0.3 | |
*/ | |
namespace PWCC\SafeCSSFeaturedImageBlockFix; | |
/** | |
* Add object-fit to supported CSS properties. | |
* |
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 | |
/** | |
* Prevent the term splitting job from being fired. | |
*/ | |
add_filter( | |
'pre_schedule_event', | |
function( $pre, $event ) { | |
if ( $event->hook === 'wp_split_shared_term_batch' ) { | |
return false; |
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
#!/bin/bash | |
# Use: | |
# backport.sh 12345 | |
# | |
# Based on https://gist.github.com/johnbillion/22dcc4ae736a3e8d022c | |
# Modifications | |
# - Uses the format recommended in the handbook | |
# - Pulls the current branch from `svn info` rather than using the directory basename | |
# |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] | |
</IfModule> |
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 | |
register_post_type( | |
'nav_menu_item', | |
[ | |
// Unlisted items remain unchanged. | |
'map_meta_cap' => true, | |
'capabilities' => [ | |
// Meta Capabilities. | |
'edit_post' => 'edit_post', |
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
{ | |
"name": "awesomemotive/seedprod-plugins", | |
"type": "project", | |
"require-dev": { | |
"wordpress/wporg-code-analysis": "1.0.0" | |
}, | |
"scripts": { | |
}, | |
"repositories": [ | |
{ |
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 | |
/** | |
* A testing plugin for trac ticket #48556. | |
* | |
* As a testing plugin, this includes a nasty hack to allow for easily | |
* viewing WP_Query dumps. | |
* | |
* **THIS SHOULD NEVER BE RUN ON A PUBLIC FACING SITE** | |
*/ | |
namespace Trac\WPQ_Update; |
NewerOlder