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
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; |
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
parse_svn_revision() { | |
local BRANCH WPVER INFO=$(svn info 2>/dev/null) | |
[ "$INFO" ] || return | |
REV=$(printf "%s\n" "$INFO" | grep Revision | sed -e 's/Revision: //') | |
BRANCH=$(printf "%s\n" "$INFO" | grep URL | sed -e 's/URL: //' | xargs basename) | |
if [ -f wp-includes/version.php ]; then | |
WPVER=$(grep wp_version\ = wp-includes/version.php | sed -e "s/.* '/ /" -e "s/';//") | |
fi | |
echo "$BRANCH:r$REV$WPVER" | |
} |
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
// Modific default settings | |
{ | |
// Name of a region icon | |
// Valid icon names are dot, circle, bookmark and cross | |
"region_icon": "circle", | |
// You can use your commands instead of plain "git" or "svn" | |
// e.g. "/usr/bin/git" or "C:\bin\git.exe" | |
"vcs": [ | |
["svn", "/usr/bin/svn"], |
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
Updated to WordPress 3.5 and can't find Twenty Twelve? | |
On Appearance > Themes, if you see "twentytwelve - Stylesheet is missing" under "Broken Themes", then you have this problem. (Multisite: You can find broken themes on Network Admin > Themes.) | |
This only affects individuals who updated to WordPress 3.5 in the first hour of its release, and who didn't already have Twenty Twelve installed. | |
The current fix is to connect to your server via FTP, and remove the empty wp-content/themes/twentytwelve directory. Then, go to Appearance > Themes > Install Themes and search for and install Twenty Twelve. (Or find it on the Featured tab.) |
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 | |
WEBROOT=/var/www/wordpress | |
LATEST_VER=$(curl -s http://api.wordpress.org/core/version-check/1.5/ | head -n 4 | tail -n 1) | |
LOCAL_VER=$(grep wp_version\ = $WEBROOT/wordpress/wp-includes/version.php | grep -o "'.*'" | sed -e "s/'//g") | |
echo "Latest version of WordPress: $LATEST_VER" | |
echo "Version on $(uname -n): $LOCAL_VER" | |
if [ "$LATEST_VER" == "$LOCAL_VER" ]; then | |
echo "No need to update."; |
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 | |
class GP_WPorg_Rosetta_Roles extends GP_Plugin { | |
var $id = 'wporg-rosetta-roles'; | |
function __construct() { | |
parent::__construct(); | |
$this->add_filter( 'pre_can_user', array( 'args' => 2, 'priority' => 9 ) ); | |
} |
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 | |
# A script that leverages Trac XML-RPC (I know, I know) to upload patches. | |
# | |
# This script is written specifically for the Mac, in that it reads from | |
# your keychain to derive your SVN password. You can change the SVN_PASS | |
# line below if you wanted to pull from ~/.svn/ or what not. | |
# | |
# Basic usage: `trac-attach.sh 12345` uploads a patch to ticket #12345, | |
# using the name 12345.diff. If there exists a 12345.diff, the patch is |
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 | |
//** Redirect if not logged in | |
add_action( 'template_redirect', function() { | |
if ( ! is_user_logged_in() ) { | |
wp_redirect( wp_login_url() ); | |
exit; | |
} | |
} ); |
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
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 |