View remove-orderby-when-counting-comments.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: Remove orderby when counting comments. | |
*/ | |
namespace PWCC\Test58368; | |
/** | |
* Remove orderby when counting comments. | |
* |
View safe-css-featured-image-block-fix.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: Featured Image block bugfix for WP 6.0.3 | |
*/ | |
namespace PWCC\SafeCSSFeaturedImageBlockFix; | |
/** | |
* Add object-fit to supported CSS properties. | |
* |
View an-unsplit-term.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 | |
/** | |
* 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; |
View backport.sh
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 | |
# 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 | |
# | |
# Note: The commit message created will need some edits: | |
# - move the merges line between props and the ticket reference | |
# - add the username of the person who provided dev-review if required |
View .htaccess
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> |
View 40878.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 | |
register_post_type( | |
'nav_menu_item', | |
[ | |
// Unlisted items remain unchanged. | |
'map_meta_cap' => true, | |
'capabilities' => [ | |
// Meta Capabilities. | |
'edit_post' => 'edit_post', |
View composer.json
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": [ | |
{ |
View 48556-testing-plugin.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 | |
/** | |
* 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; |
View metaboxes.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 | |
namespace PWCC; | |
/** | |
* Register meta box(es). | |
*/ | |
function wpdocs_register_meta_boxes() { | |
add_meta_box( 'meta-box-id', __( 'My Meta Box', 'textdomain' ), __NAMESPACE__ . '\\wpdocs_my_display_callback', 'post' ); | |
} |
View plugin-header-check.yaml
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: Version checks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
# Compares the header information in the readme.txt and the main plugin file |
NewerOlder