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
#!/bin/sh | |
# ######### | |
# Variables | |
# ######### | |
WORKING_DIR="/Users/josh-cunningham/Sites/wordpress-test-fixture" | |
DB_NAME="wordpress_test_fixture" | |
DB_USER="root" | |
DB_HOST="localhost" |
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
{ | |
"version":1, | |
"last_step":1, | |
"migration_token_id":null, | |
"use_lock_10":true, | |
"jwt_auth_integration":0, | |
"amplificator_title":"", | |
"amplificator_subtitle":"", | |
"connections":[], | |
"auth0js-cdn":"https:\/\/cdn.auth0.com\/js\/auth0\/9.4\/auth0.min.js", |
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
function get_wp_env() { | |
$server_software = filter_input( INPUT_SERVER, 'SERVER_SOFTWARE', FILTER_SANITIZE_STRING ); | |
if ( $server_software ) { | |
$server_software = explode( ' ', trim( $server_software ) ); | |
$server_software = $server_software[0]; | |
} else { | |
$server_software = __( 'unknown', 'wp-auth0' ); | |
} | |
try { |
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
#!/usr/bin/env bash | |
# | |
# Check for flags | |
# | |
# -d will use all default values | |
USE_DEFAULTS=false; | |
# -r will reset the install first (delete the DB and files) |
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
// Primary colors | |
// http://styleguide.auth0.com/#/design/primary-colors | |
$color-red: #EB5424; | |
$color-blue-light: #44C7F4; | |
$color-blue: #16214D; | |
$color-yellow: #EACA2C; | |
// Secondary colors | |
// http://styleguide.auth0.com/#/design/secondary-colors |
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
/** | |
* Append a cache-breaking parameter to login_url redirects | |
* | |
* @param string $login_url | |
* @param string $redirect | |
* | |
* @return string | |
*/ | |
function wp_auth0_gist_cache_break_redirect_to( $login_url, $redirect ) { | |
if ( ! empty( $redirect ) ) { |
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
/** | |
* Find next available server number | |
* | |
* @param servers | |
* | |
* @return {int} | |
*/ | |
function next_server_number( servers ) { | |
'use strict'; |
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 | |
/** | |
* Completely nuke comments support | |
* Need to also also turn off comments/pingbacks at wp-admin > Settings > Discussion | |
* Need to also turn off comments for posts individually (Bulk Edit or DB find/replace) | |
* | |
* Adapted from: https://www.dfactory.eu/wordpress-how-to/turn-off-disable-comments/ | |
* | |
* @package WordPress |
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
/** | |
* Get the various parameters from a URL piece, hash or query | |
* | |
* @param params | |
* | |
* @returns {{}} | |
*/ | |
function parseUrlParams( params ) { | |
'use strict'; |
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
// | |
// Smooth scroll-to inspired by: | |
// http://stackoverflow.com/a/24559613/728480 | |
// | |
module.exports = function (scrollTo, scrollDuration) { | |
// | |
// Set a default for where we're scrolling to | |
// |