Skip to content

Instantly share code, notes, and snippets.

View ironprogrammer's full-sized avatar
💭
hackin the gibsons

Brian Alexander ironprogrammer

💭
hackin the gibsons
View GitHub Profile
@ironprogrammer
ironprogrammer / calypso-anybar-handler.sh
Created January 23, 2025 19:14 — forked from mcsf/calypso-anybar-handler.sh
Calypso AnyBar handler
#!/bin/bash
PORT="${PORT:-1738}"
DONE_COLOR="${DONE_COLOR:-"black"}"
PROGRESS_COLOR="${PROGRESS_COLOR:-"white"}"
INITIAL_COLOR="${INITIAL_COLOR:-"white"}"
BUILD_ERROR_COLOR="${BUILD_ERROR_COLOR:-"red"}"
TEST_ERROR_COLOR="${TEST_ERROR_COLOR:-"purple"}"
HAS_ERROR=0
@ironprogrammer
ironprogrammer / plugin-update-failure.php
Last active October 8, 2025 17:00
Simulate plugin update failure
<?php
/**
* Plugin Name: Simulate Plugin Update Failure
* Description: This MU plugin simulates an update failure for a specific plugin based on its slug.
*
* Install this script into your `/wp-content/mu-plugins/` directory. Remove file when testing is complete.
*/
// Define the plugin slug to target for the simulated failure.
$target_plugin_slug = 'akismet/akismet.php'; // Change this to the slug of the plugin you want to target.
@ironprogrammer
ironprogrammer / change-fonts-dir-location.php
Last active October 8, 2025 17:01
Test plugin for Trac 61638 - move `font_dir` location
<?php
/**
* Change the location of the fonts directory using the `font_dir` filter.
* Sets directory to a non-existent location for testing Trac 61638.
*
* @see https://core.trac.wordpress.org/ticket/61638
*/
// Change location where fonts are stored.
add_filter( 'font_dir', 'move_wp_fonts_dir' );
{
"landingPage": "/wp-admin/site-editor.php",
"preferredVersions": {
"php": "8.0",
"wp": "beta"
},
"features": {
"networking": true
},
"steps": [
@ironprogrammer
ironprogrammer / symlinked.php
Last active December 13, 2025 01:12
Indicate plugins symlinked or under source control
<?php
/**
* Adds indicators to plugin actions menu if plugin is symlinked and/or under
* source control.
*
* Why do this?
* Because until https://core.trac.wordpress.org/ticket/36710 is resolved,
* it's too easy to accidentally update or delete a symlinked plugin
* (which is likely also under source control 🤯).
*
@ironprogrammer
ironprogrammer / TRIAGE.md
Created December 14, 2023 19:24
Triage canned responses

Always thank the reporter and welcome them to Trac, even when invalid. In general when closing invalid tickets, remove/delete Milestone and/or Focus as they could unintentionally show up in a release/component query.

General Support

close as: invalid

Hi, there, welcome to WordPress Trac!

I'm sorry you're having issues updating your website. Please note that Core Trac is used for bug reports and enhancements for the WordPress core software, not individual support issues or questions.

@ironprogrammer
ironprogrammer / README.md
Last active October 8, 2025 17:03
C2PA metadata testing
@ironprogrammer
ironprogrammer / README.md
Last active October 8, 2025 17:05
Test Contributor Badge Checker

Test Contributor Badge Checker

This script checks a list of WordPress.org contributors for whether they have the Test Contributor badge, and if not, if they've recently submitted a test report in Trac.

To Get Started

Copy these files into a folder. Create a contribs.txt file with a list of WPORG usernames or Slack IDs to check. One entry per line works best.

Where Do I Get Contributor IDs?

Here is an incomplete list of sources to check for new test contributions:

  • #core-test triage participants who conduct repro or patch testing
@ironprogrammer
ironprogrammer / fake-wordpress-update.php
Last active October 8, 2025 17:06
Trac 57662 test plugin -- enables custom WordPress package update
<?php
/**
* Plugin Name: Fake WordPress Update
* Description: Filters the value of <code>site_transient_update_core</code> to allow a custom install package.
* Author: WordPress Core Contributors
* Author URI: https://make.wordpress.org/core
* License: GPLv2 or later
* Version: 1.0.0
*
* Adapted from https://gist.githubusercontent.com/hellofromtonya/bb0aa2d4b2311c8b40fa5ae8ada4dc19
@ironprogrammer
ironprogrammer / test-trac-57575-mu-sandbox.php
Last active October 8, 2025 17:07
Trac 57575 "Sandbox" MU Plugin
<?php
/**
* Trac 57575: WP_HTML_Tag_Processor Testing
* https://core.trac.wordpress.org/ticket/57575
*
* Also refer to unit test suite for additional examples:
* https://github.com/WordPress/wordpress-develop/tree/5b4ad8fa5634177102ee5771a2b7edfd86927f8b/tests/phpunit/tests/html
*
* ******************************** WARNING ***********************************
* * This plugin intentionally prevents the normal WordPress UI from loading. *