Skip to content

Instantly share code, notes, and snippets.

View Pross's full-sized avatar
💬

Simon Prosser Pross

💬
View GitHub Profile
#dropmenu .children a {
color: #000;
}
// ==UserScript==
// @name wporg_admin
// @namespace http://themes.trac.wordpress.org
// @include http://themes.trac.wordpress.org/query?*
// ==/UserScript==
document.body.innerHTML=document.body.innerHTML.replace(/theme-(.*)(,.*)/g,"theme-$1$2<a target=\"_blank\" href=\"http://wordpress.org/extend/themes/admin/$1\">[ADMIN]<\/a>");
@Pross
Pross / proposed
Created December 29, 2010 20:56
original
We couldn’t find that file to show.
<?php
class NewLineCheck implements themecheck {
protected $error = array();
function check( $php_files, $css_files, $other_files) {
$ret = true;
foreach ($php_files as $name => $content) {
checkcount();
if ( preg_match('/\?>[\r\n]+^[\r\n]+<\?php/m',$content, $matches) ) {
$filename = tc_filename( $name );
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 />
<?php
class TextDomainCheck implements themecheck {
protected $error = array();
function check( $php_files, $css_files, $other_files) {
$ret = true;
$php = implode(' ', $php_files);
@Pross
Pross / gist:1802536
Created February 11, 2012 17:12
Simple class plugin
<?php
/*
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
DELETE from wp_posts where `post_type` = 'boxes'
@Pross
Pross / functions.php
Created March 1, 2013 18:01
rss url filter
add_filter( 'pagelines_branding_rssurl', create_function('', 'return "http://feeds.feedburner.com/TheBlogOfPross";') );
@Pross
Pross / gist:5069166
Created March 2, 2013 01:13
force posix chech true
add_filter( 'render_css_posix_', '__return_true' );