This file contains hidden or 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/bash | |
# Help / usage info. | |
USAGE=$'WordPress Helper script, built for EasyEngine but should be widely compatible.\nWithout any args it will search /var/www/ for WordPress sites, loop over them in alphabetical order and check for core and plugin updates.\nAlso accepts:\n\t--sites=[space seperated list of site paths relative to /var/www]\n\t--update=[plugins|wp|all].' | |
# Die function for exiting on errors. | |
die () { | |
echo "${1}, exitting..." >&2 ; echo ; exit 1 | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
RewriteEngine on | |
RewriteCond %{THE_REQUEST} public/ | |
RewriteRule ^public/(.*) http://site.dev/$1 [R=301,L] | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule ^(.*)$ /public/$1 [L] |
This file contains hidden or 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 | |
/** | |
* Created by PhpStorm. | |
* User: david1 | |
* Date: 07/05/2017 | |
* Time: 13:32 | |
*/ | |
/** | |
* Adds Foo_Widget widget. | |
*/ |
This file contains hidden or 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
/** | |
* 1/ onLoad, retrieve session storage data (ALL OF IT !!! - so carefull) | |
* 2/ the key === input/select ID | |
* 3/ set the value | |
*/ | |
window.onload = function () { | |
if (sessionStorage) { | |
for (i = 0; i < sessionStorage.length; i++) { | |
var key = sessionStorage.key(i); | |
var value = sessionStorage[key]; |
This file contains hidden or 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 | |
if(!class_exists('WP_List_Table')) require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
/** | |
* Extended class for displaying a list of items in an HTML table. | |
* | |
* @usage | |
* // be sure to modify the display_rows function to customize the output of the rows | |
* $args = array( |
NewerOlder