As of November 5th, 2013, this version of the blacklist will no longer be updated.
I have migrated the project to a full Git repository in order to better track changes, bugs, and feedback.
Check out Comment Blacklist for WordPress on GitHub.
<?php | |
/***** | |
All new versions will be posted at | |
https://github.com/rmccue/Rotor_WPPlugin | |
Please use that repository instead of this Gist. | |
******/ |
<?php | |
// See http://wordpress.org/extend/plugins/debug-bar/ | |
remove_action( 'admin_bar_menu', array( 'Debug_Bar', 'admin_bar_menu' ), 1000 ); | |
add_action( 'admin_bar_menu', 'ds_fix_debug_bar_menu', 5 ); | |
function ds_fix_debug_bar_menu( $wp_admin_bar ) { | |
$wp_admin_bar->add_menu( array( | |
'parent' => 'top-secondary', | |
'id' => 'debug-bar', |
<?php | |
/** | |
* Adds a hidden input field for scrolltop value. | |
* | |
* @return void | |
*/ | |
function ds_scrollto_input() { | |
$position = ! empty( $_GET['scrollto'] ) ? $_GET['scrollto'] : 0; | |
printf( '<input type="hidden" id="scrollto" name="scrollto" value="%d"/>', esc_attr( $position ) ); |
As of November 5th, 2013, this version of the blacklist will no longer be updated.
I have migrated the project to a full Git repository in order to better track changes, bugs, and feedback.
Check out Comment Blacklist for WordPress on GitHub.
<?php | |
/** | |
* Plugin Name: MMC Parks and Features | |
* Description: This plugin demonstrates how to route parent/child URLs like http://example.com/parks/yosemite/half-dome/in WordPress 3.3 | |
* Author: Mike Schinkel | |
* Author URL: http://about.me/mikeschinkel | |
* Notes: | |
* To answer http://lists.automattic.com/pipermail/wp-hackers/2011-November/041486.html | |
* Assumes a metabox that sets $post->post_parent field for a park feature with it's park's $post->ID. | |
* |
<?php | |
/* | |
Plugin Name: Mfields Github Shortcode | |
Plugin URI: null | |
Description: Display recent commits from a Github repository. | |
Version: 0.1 | |
Author: Michael Fields | |
Author URI: http://wordpress.mfields.org/ | |
License: GPLv2 or later |
<?php | |
add_action ( 'wp_head', 'add_jquery_when_comments_in_viewport', 11 ); | |
function add_jquery_when_comments_in_viewport() | |
{ | |
?> | |
<script type="text/javascript"> | |
/* <![CDATA[ */ | |
function jquery_for_comments_onLoad() { | |
var element = document.getElementById( "comments" ), | |
current = document.body.clientHeight+document.body.scrollTop, |
<?php | |
/** | |
* Author Endpoints Example | |
* | |
* Copyright (C) 2010 hakre <http://hakre.wordpress.com/> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU Affero General Public License as | |
* published by the Free Software Foundation, either version 3 of the | |
* License, or (at your option) any later version. |