I hereby claim:
- I am kopepasah on github.
- I am kopepasah (https://keybase.io/kopepasah) on keybase.
- I have a public key whose fingerprint is 4DAF 8609 5D7C 7CBD 10CE 11B7 6404 3E01 055A 58FE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The philosophy behind Documentation-Driven Development is a simple: from the perspective of a user, if a feature is not documented, then it doesn't exist, and if a feature is documented incorrectly, then it's broken.
| <?php | |
| /** | |
| * Allow JSON file uploads to WordPress media library. | |
| * | |
| * @package WordPress | |
| * | |
| * @author Justin Kopepasah <justin@kopepasah.com> | |
| */ | |
| /** |
| // Subscribe to changes in the wp.data redux store. | |
| wp.data.subscribe( () => { | |
| // An array of "Always On" panel (metabox) ids to disallow disabling. | |
| const alwaysOn = []; | |
| // Current panels preferences | |
| const panels = wp.data.select( 'core/edit-post' ).getPreference( 'panels' ); | |
| // Loop over the panels object. |
| #!/usr/bin/env bash | |
| # Shortcut for WP Snapshots usage in wp-local-docker | |
| # | |
| # @link: https://github.com/10up/wp-local-docker#wp-snapshots | |
| function snap() { | |
| if [ -f "$PWD/bin/wpsnapshots.sh" ]; then | |
| sh ./bin/wpsnapshots.sh "$@" | |
| fi | |
| } |
| #!/bin/bash | |
| echo "Preparing update..." | |
| terminus login --email=your@email.com -q | |
| terminus connection:set site.dev sftp -q | |
| echo "Validating update..." | |
| if [[ $(terminus wp site.dev -- core check-update) == *"WordPress is at the latest version"* ]] 2>/dev/null; then | |
| terminus wp site.dev -- core version --extra 2>/dev/null | |
| echo "No WordPress Core update to apply." |
| $colors: ( | |
| "blue": "#2b55f3", | |
| "green": "#39dd4a", | |
| "yellow": "#f0f30f", | |
| "red": "#ff2e35", | |
| "orange": "#f8ad55", | |
| ); | |
| @each $name, $color in $colors { | |
| .#{$name} { |
| @mixin breakpoint( $start, $stop: null ) { | |
| $breakpoints: ( | |
| 'small': 480px, | |
| 'medium': 720px, | |
| 'large': 960px, | |
| 'huge': 1200px, | |
| 'container': $container, | |
| ); | |
| $start: validate-point( $start, $breakpoints ); |
| <?php | |
| /** | |
| * Redirect Lost Posts | |
| * | |
| * @author Justin Kopepasah <justin@kopepasah.com> | |
| * @license MIT | |
| */ | |
| add_action( 'template_redirect', function() { | |
| // Only redirect if nothing is found. | |
| if ( is_404() ) { |