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 | |
// Solution for https://github.com/Tarendai/davina | |
/** | |
* Remove filter or action method added from an unassigned object. | |
* | |
* Solves the immediate case. Not bothered to generalise it. | |
* | |
* @global array $wp_filter Storage for all of the filters and actions. |
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 | |
/* | |
Handles URL Rewriting in WordPress 3.0 like this: | |
fastigheter-spanien/X -> property/X&lang=sv | |
fastigheter-usa/X -> property/X&lang=sv | |
properties-spain/X -> property/X&lang=en | |
properties-usa/X -> property/X&lang=en |
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 | |
/** | |
* Theme Napkin Wordpress Plugin | |
* | |
* Safeguard unintended output generated by theme bootstrap code (functions.php). | |
* | |
* Copyright 2011 by hakre <http::/hakre.wordpress.com>, some rights reserved. | |
* | |
* This program is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU General Public License |
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 | |
/** | |
Plugin Name: AntiScript deamon | |
Plugin URI: https://github.com/franz-josef-kaiser | |
Description: Removes script-links to spam sites from your post content after your site got hacked. Please go to <a href="tools.php?page=script_deamon.php">Tools → Remove Hack</a>. Thank you. Proudly brought to you by <a href="http://example.com">Franz Josef Kaiser</a>. | |
Version: 0.1 | |
Author: Franz Josef Kaiser | |
Author URI: https://github.com/franz-josef-kaiser | |
License: GPL2 | |
WP-Version: Tested in 2.7.1, 2.9.2, 3.0 |
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 | |
/** | |
* Creates JSON class for Tom C. Barrett to load tickets via a RESTful API: | |
* | |
* @example: | |
* | |
* URL: http://example.com/api/ticket/12345 | |
* | |
* @see: | |
* |
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 | |
/* | |
Plugin Name: WordPressTests | |
Plugin URI: | |
Description: Automated testing of WordPress | |
Version: 0.0.1-dev01 | |
Author: Ralf Albert | |
Author URI: http://yoda.neun12.de | |
*/ |
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 | |
/** | |
* Meine Dokumentation zu der Funktion xyz die dafuer sorgt das XYZ etwas macht | |
* | |
* @autor Rene Reimann | |
* @package Theme XYZ | |
*/ | |
if ( ! class_exists( 'register_custom_post_types' ) ) { |
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 | |
/** | |
* Text Field | |
* | |
* A simple text field callback to use with the Settings API. Don't forget to pass in | |
* the arguments array. Here's an example call to add_settings_field() : | |
* | |
* add_settings_field( 'my_option', __( 'My Option' ), 'foo_field_text', 'theme_options', 'general', array( | |
* 'name' => 'my_theme_options[my_option]', | |
* 'value' => $options['my_option'], // assuming $options is declared |
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 | |
add_action( 'save_post', 'clear_many_sites_transient', 10, 1 ); | |
add_action( 'edit_post', 'clear_many_sites_transient', 10, 1 ); | |
function clear_many_sites_transient( $post_id ){ | |
$post = get_post( $post_id ); | |
if( 'page' === $post->post_type ) | |
delete_transient( 'many_sites_in_one' ); |
OlderNewer