{{ message }}

Instantly share code, notes, and snippets.

# Tonya Mork hellofromtonya

Last active Jul 28, 2021
Test script for rendering a table for the 'site_logo' & theme mod 'custom_logo' options
View test-trac53770.php
 array(
Created Jul 19, 2021
Trac ticket 53165 - Test Custom Taxonomy added as a must-use plugin
View t53165.php
 'Tests', 'singular_name' => 'Test',
Created Apr 29, 2021
Testing script for WordPress Trac ticket 28020
View 28020.php

Created Mar 23, 2021
Core Ticket 51423: test script to make `wp_json_encode` fail during generation of personal data export JSON file.
View 51423.php
 \$request_id, '_export_data_grouped' => get_post_meta( \$request_id, '_export_data_grouped', true ), );
Created Nov 25, 2020
Sample HTML for benchmarking
View sample.html
 Blog - Testing page
Last active Oct 15, 2020
Ticket 50787 WordPress Core
View 50787.php
 /** * Return compatibility strings. * * @since 5.6.0 * * @param string \$key The key for the particular string. * Default is false. * @param string \$name Plugin or theme name. * * @return string The appropriate compatibilty string.
Created Aug 16, 2020
Making Debug Toolkit plugin a must-use.
Created Jun 8, 2019
Algorithm to get the longest sequential (consecutive set of numbers from the given unsorted list.
View longest_consecutive_subsequence_algorithm.py
 def longest_consecutive_subsequence(input_list): """ Gets the longest sequential (consecutive set of numbers from the given unsorted list. Time complexity is O(n) and space complexity is O(n). This design uses Python's `range()` function to generate the list of sequential numbers. To accomplish this, we iterate through the input list to find the least starting number and the number of sequential numbers. It works on all integers.
Last active Jun 7, 2019
Finding the Height and Diameter in a Binary Search Tree
View binary_tree.md

# Finding the Diameter of a Binary Tree

## What is the diameter?

The diameter of a binary tree (sometimes called the width) is the number of nodes on the longest path between two leaves in the binary tree.

### Edge Cases

The diameter can occur through:

Last active Mar 19, 2019
Show Custom Taxonomy Panel in the Gutenberg Editor
View books.php