Skip to content

Instantly share code, notes, and snippets.

View postphotos's full-sized avatar
🎒

Leo Postovoit postphotos

🎒
View GitHub Profile
@kwhite
kwhite / wcus2017-gutenberg-feedback.md
Last active December 14, 2017 18:19
Tab-based usability feedback on Gutenberg navigation.

Gutenberg Feedback 2017-12-03

Terminology

In my feedback I’m defining things this way:

  • Items - Individual block types in a list.
  • Sections - Groupings of Items with a semantic title
  • Tabs - Recent, Blocks, Embeds

Block insertion controls

Ultimately… I think the editor navigation would make more sense with a “rule” that tabs move you from “unit” to “unit”, and arrows move you within (and between, if they are nested) sections/units. It gives the interaction more of a consistent rule and I feel like it would help because people are transitioning between mental states if they’re perusing a list of Items vs jumping from Recent to Embed, for example.

@PatelUtkarsh
PatelUtkarsh / wp-config.php
Last active October 29, 2018 08:24
Valet share url fix for WordPress with https support
<?php
/**
* Add this block in wp-config.php file.
*
* Move any other `WP_HOME` or `WP_SITEURL` in else condition if present.
*/
if ( isset( $_SERVER['HTTP_X_ORIGINAL_HOST'] ) ) {
$is_ssl = isset( $_SERVER['HTTP_X_FORWARDED_PROTO'] );
$actual_link = ( $is_ssl ? "https" : "http" ) . "://{$_SERVER[ 'HTTP_X_ORIGINAL_HOST' ]}";
define( 'WP_HOME', $actual_link );
# Install Xcode Command Line Tools
xcode-select --install
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Update Homebrew Package Index
brew update
# Confirm Homebrew is Installed Correctly
@laacz
laacz / wp-upgrade-check.sh
Created April 3, 2014 11:47
Finds Wordpress installations with outdated cores and/or plugins. If it throws php warnings (wp-cli does so), just redirect do `wp-update-check.sh 2>/dev/null`.
#!/usr/bin/env bash
#
# Script will find all wordpress installs and check if they're out of date
#
# Using wp-cli - http://wp-cli.org/
# Paths to search for wordpresses. Separated by space.
PATHS="/var/www /data/www"