- Clone these files into a plugin directory
- Activate plugin (will populate several postmeta table rows about most recent posts)
- Open that post in the editor
- See the textbox in the Publish Status panel with label "Edit me:"
- Put any string into that input
- Try to save
- Encounter error
Updating failed. Could not update the meta value of example_post_meta in database.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<mapper device="KEYBOARD" author="Atomix Productions" version="850" date="2024-08-27"> | |
<info>https://www.virtualdj.com/manuals/hardware/keyboard/index.html</info> | |
<map value="TAB" action="deck active select" /> | |
<map value="CTRL+TAB" action="sideview +1" /> | |
<map value="CTRL+SHIFT+TAB" action="sideview -1" /> | |
<map value="SPACE" action="play_pause" /> | |
<map value="SHIFT+SPACE" action="play while_pressed" /> | |
<map value="ALT+SPACE" action="mix_now" /> | |
<map value="CTRL+SPACE" action="automix" /> |
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
javascript:'use strict'%3B(()%3D>%7Bfunction l(%7Bx%3Ae%2Cy%3Af%7D)%7Bconst a%3Ddocument.createElement("div")%3Ba.style.position%3D"absolute"%3Ba.style.display%3D"none"%3Ba.style.border%3D"7px dotted hotpink"%3Ba.style.borderRadius%3D"1rem"%3Ba.style.display%3D"block"%3Ba.style.height%3D0%3Ba.style.left%3D%60%24%7Be%7Dpx%60%3Ba.style.top%3D%60%24%7Bf%7Dpx%60%3Ba.style.width%3D0%3Bconst b%3Ddocument.createElement("DIV")%3Bb.classList.add("annotation-label")%3Bb.contentEditable%3D!0%3Bb.style.background%3D"rgba(255%2C255%2C255%2C0.9)"%3Bb.style.transform%3D"translateY(-60%25)"%3Bb.style.color%3D"hotpink"%3Bb.style.display%3D"inline-block"%3Bb.style.minWidth%3D"100px"%3Bb.style.padding%3D"0.25rem 0.5rem"%3Bb.style.marginLeft%3D"0.75rem"%3Bb.style.fontWeight%3D800%3Bb.style.fontSize%3D"24px"%3Bb.style.whiteSpace%3D"nowrap"%3Ba.appendChild(b)%3Bb.addEventListener("pointerdown"%2Cc%3D>%7Bc.stopPropagation()%7D)%3Ba.addEventListener("contextmenu"%2Cc%3D>%7Bc.preventDefault()%3Ba.remove()%7D)%3Bconst g%3Dc%3D>%7Ba.st |
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: Track Rendering Context | |
* Plugin Author: K. Adam White | |
* Plugin Description: A system for tracking the rendering of blocks on the page. | |
* | |
* USAGE | |
* | |
* Activate plugin, then on any page on the site, add ?blocks_log to the URL. | |
* The block hierarchy will be rendered to the error log. |
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
PROMPT=$' | |
$(git_prompt_info)[%{$fg[magenta]%}%m%{$reset_color%}%{$fg[white]%}:%{$fg[magenta]%}%~%{$reset_color%}]\ | |
%{$fg[magenta]%}%D{[%H:%M:%S]} %{$reset_color%}%# ' | |
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}]" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}*%{$fg[magenta]%}" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
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
/** | |
* WP Post object. Only properties needed by the code are included. | |
* | |
* @typedef {object} WPPost | |
* @property {number} id ID of post. | |
* @property {number} author Post author ID. | |
* @property {number[]} categories IDs of associated categories. | |
* @property {number[]} tags IDs of associated tags. | |
* @property {number} featured_media ID of featured image. | |
*/ |
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 | |
/** | |
* Format a backtrace in a way that makes sense to me visually. | |
* Command-click on filenames in terminal output to jump to them. | |
* | |
* @param array $backtrace | |
* @return string | |
*/ | |
function backtrace_to_log( array $backtrace ) : string { | |
$table = [ [ ' file', 'function' ], [ '---------', '--------' ] ]; |
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 | |
/** | |
* Simplify progressive generation of a CSV output file. Permits a command to | |
* write each row to a CSV as records are considered, avoiding the need to | |
* maintain the entire dataset in memory. | |
*/ | |
/* phpcs:disable HM.Files.ClassFileName.MismatchedName */ | |
// (HM's standards want this to be class-*, which is misleading.) |
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
/** | |
* This file defines the project-level Webpack production configuration. It | |
* combines configs from all relevant plugins and themes into one single | |
* array (a "multi-configuration" Webpack setup) and runs those builds in | |
* a single pass. | |
*/ | |
const { basename, extname } = require( 'path' ); | |
const postcss = require( 'postcss' ); | |
const filtermq = require( 'postcss-filter-mq' ); |
NewerOlder