- Update the iop-theme to >2.28.0
- Update iop-data-model to >0.4.0
- Delete all existing Posts in wp-admin
- Change all News posts'
post_type
to Posts in phpMyAdmin:UPDATE `wp_posts` SET `post_type` = 'post' WHERE `post_type` = 'news';
- Update permalink Custom Structure to
/news/%postname%/
I've been running all my dev projects via Docker to avoid the pitfalls of installing server software on my computer. This also lets me jump between macheines very easily since everything I need is wrapped up in dockerfiles, docker-compose files or package.json scripts.
WordPress development doesn't work like that. The default development environment expects PHP to be installed and will try to run PHPCS validation checks from a local instance of PHP.
The official Composer Docker image is extremely versatile. It can run arbitrary shell commands if the passed argument isn't a Composer keyword.
WordPress v6.3.1 inlines styles for used blocks via the wp_head
hook. However there is an additional wrinkle. If the SCRIPT_DEBUG
constant is set and truthy, then a minimized copy of the styles will be inlined. The minimized copy is pre-generated and included with WordPress.
Code for choosing to use the min variant is in wp-includes/blocks.php:
// Check whether styles should have a ".min" suffix or not.
$suffix = SCRIPT_DEBUG ? '' : '.min';
if ( $is_core_block ) {
$style_path = ( 'editorStyle' === $field_name ) ? "editor{$suffix}.css" : "style{$suffix}.css";
}
{ | |
"ports": [3000, 5173, 8000] | |
} |
// Starting with an API returned data structure like this: | |
const Parameters = [ | |
{ | |
Name: "PASS", | |
Type: "SecureString", | |
Value: "cGFzc3dvcmQ=", | |
Version: 3, | |
LastModifiedDate: "2022-11-14T15:13:08.263Z", | |
ARN: "arn:aws:ssm:us-east-1:678000000000:parameter/PASS", |
\n | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
———\n | |
time_total: %{time_total}\n |
/** | |
* For ADP's 2022 sexual harrassment training | |
*/ | |
cr = () => { | |
const next = $('button.next-button:not(.disabled)') | |
if (next.length) { | |
next.click(); | |
} |
Input: my name is bond
Name | Sample |
---|---|
🐪 Camel case | myNameIsBond |
👨🏫 Pascal case | MyNameIsBond |
🐍 Snake case | my_name_is_bond |
👩🏫 Ada case | My_Name_Is_Bond |
MY_NAME_IS_BOND |
|
🥙 Kebab case | my-name-is-bond |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Leaflet Map</title> | |
<meta charset="utf-8" /> | |
<link | |
rel="stylesheet" | |
href="http://cdn.leafletjs.com/leaflet-0.7/leaflet.css" | |
/> | |
</head> |
#!/usr/bin/env bash | |
# Download this file then run: | |
# % chmod a+x setup.sh | |
# % ./setup.sh | |
# Or run directly from this Gist: | |
# % curl https://gist.githubusercontent.com/joemaller/55aca1bcffe44558cf93527153d6896a/raw/setup.sh | bash | |
# Install Homebrew first https://brew.sh | |
set -u |