Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
define('WP_ALLOW_MULTISITE', true); | |
define('MULTISITE', true); | |
define('SUBDOMAIN_INSTALL', false); | |
define('DOMAIN_CURRENT_SITE', 'subdomain.domain.com'); | |
define('PATH_CURRENT_SITE', '/'); | |
define('SITE_ID_CURRENT_SITE', 1); | |
define('BLOG_ID_CURRENT_SITE', 1); |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
# add a trailing slash to /wp-admin | |
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteRule ^ - [L] |
<?php | |
/** Add in new media query stylesheets for functions.php */ | |
// Add custom.css file in <head> | |
add_action('genesis_meta', 'pmg_add_customcss'); | |
function pmg_add_customcss( ) { | |
$pmg_css_link = ' | |
<link href="'.get_bloginfo( 'stylesheet_directory' ).'/no-mq.css" rel="stylesheet"> | |
<!--[if (gte IE 9) | (IEMobile)]><!--> |
<?php | |
/* Plugin Name: Damn Vulnerable WordPress Plugin | |
* Description: Intentionally vulnerable plugin for plugin author education | |
* Version: 0.1 | |
* Plugin URI: http://make.wordpress.org/plugins/2013/04/09/intentionally-vulnerable-plugin/ | |
* Author: Jon Cave | |
* Author URI: http://joncave.co.uk | |
* License: GPLv2+ | |
* | |
* DO NOT RUN THIS PLUGIN ON AN INTERNET ACCESSIBLE SITE |
<?php | |
//* Add Viewport meta tag for mobile browsers (requires HTML5 theme support) | |
add_theme_support( 'genesis-responsive-viewport' ); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Go to the Settings page and click "Manage search engines" under the Search heading. | |
Scroll down below "Other search engines" to add a new search engine. Enter the following: | |
secureGoogle | |
https://encrypted.google.com | |
https://encrypted.google.com/search?hl=en&as_q=%s | |
Scroll up to find it in your list if you have a huge list and click "Make default" to make it appear in the top box and bolded. | |
Ideally, you'd be in Incognito mode for complete anti-cookie tracking on your system, but it's better than nothing. |
// After all network activate/deactivate sections, before Global Variables | |
/** | |
* Edit the logout/login/lost_password URLs to the new custom URL | |
* | |
* @since 2.1.0 | |
* @param $old | |
* @param $new | |
* @param $url | |
* @return array |
<?php | |
// Start up the engine | |
final class SLPCreator { | |
static $instance; | |
function __construct() { | |
self::$instance =& $this; | |
// Actions | |
add_action( 'init', 'slp_load_plugin_translations', 1 ); |