Skip to content

Instantly share code, notes, and snippets.

Simon Prosser Pross

Block or report user

Report or block Pross

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:720538
#dropmenu .children a {
color: #000;
View wporg_admin
// ==UserScript==
// @name wporg_admin
// @namespace
// @include*
// ==/UserScript==
document.body.innerHTML=document.body.innerHTML.replace(/theme-(.*)(,.*)/g,"theme-$1$2<a target=\"_blank\" href=\"$1\">[ADMIN]<\/a>");
We couldn’t find that file to show.
View newline.php
class NewLineCheck implements themecheck {
protected $error = array();
function check( $php_files, $css_files, $other_files) {
$ret = true;
foreach ($php_files as $name => $content) {
if ( preg_match('/\?>[\r\n]+^[\r\n]+<\?php/m',$content, $matches) ) {
$filename = tc_filename( $name );
View wp-config.php
define('REVIEWER', true);
define('TC_PRE', 'Theme Review:[[br]]
- Themes should be reviewed using "define(\'WP_DEBUG\', true);" in wp-config.php[[br]]
- Themes should be reviewed using the test data from the Theme Checklists (TC)
<br />-----<br />
define('TC_POST', '
<br />-----<br />
General Observations:[[br]]
<br />-----<br />
View textdomain.php
class TextDomainCheck implements themecheck {
protected $error = array();
function check( $php_files, $css_files, $other_files) {
$ret = true;
$php = implode(' ', $php_files);
Pross / gist:1802536
Created Feb 11, 2012
Simple class plugin
View gist:1802536
Plugin Name: Demo
Plugin URI: http://www.xxxx
Author: Name...
Author URI: http://www.xxxx
Demo: http://www.xxxxx
External: http://www.xxxxx
Description: A simple demo
PageLines: true
View gist:5060463
DELETE from wp_posts where `post_type` = 'boxes'
View functions.php
add_filter( 'pagelines_branding_rssurl', create_function('', 'return "";') );
Pross / gist:5069166
Created Mar 2, 2013
force posix chech true
View gist:5069166
add_filter( 'render_css_posix_', '__return_true' );
You can’t perform that action at this time.