Skip to content

Instantly share code, notes, and snippets.

@nacin
nacin / gist:5533549
Last active December 17, 2015 02:08 — forked from rlerdorf/gist:5530518
PemFTP
--------------------------------
File : wp-admin/includes/class-ftp.php:508
Reason : UseUndeclaredVariable
Snippet : $arg
Line : return $this->_list(($arg?" ".$arg:"").($pathname?" ".$pathname:""), "NLST", "nlist");
--------------------------------
File : wp-admin/includes/class-ftp.php:508
Reason : UseUndeclaredVariable
Snippet : $arg
<?php
//** Redirect if not logged in
add_action( 'template_redirect', function() {
if ( ! is_user_logged_in() ) {
wp_redirect( wp_login_url() );
exit;
}
} );
Index: wp-content/themes/twentytwelve/style.css
===================================================================
--- wp-content/themes/twentytwelve/style.css (revision 21639)
+++ wp-content/themes/twentytwelve/style.css (working copy)
@@ -437,10 +437,13 @@
body {
font-size: 14px;
font-size: 1rem;
- font-family: "Open Sans", Helvetica, Arial, sans-serif;
+ font-family: Helvetica, Arial, sans-serif;
@nacin
nacin / wcphilly-admin.php
Created November 5, 2011 04:03 — forked from norcross/admin_htaccess.txt
WCPhilly Admin
<?php
/*
Plugin Name: WordCamp Philly 2011 Admin
Plugin URI: http://localhost/whitelabel
Description: Some swanky stuff to make your admin look GOOD
Author: Andrew Norcross
Version: 0.1
Requires at least: 3.0
Author URI: http://andrewnorcross.com