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 | |
$email = isset( $_GET['email'] ) ? $_GET['email'] : 'null'; | |
$salt = isset( $_GET['salt'] ) ? $_GET['salt'] : ''; | |
// hash email, split it up | |
$hash = str_split( sha1( $email . $salt ), 2 ); | |
// use first 3 values for foreground | |
$foreground = "{$hash[0]}{$hash[1]}{$hash[2]}"; |
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: Sync Users | |
Plugin URI: http://ninnypants.com | |
Description: Sync users to new blogs as a subscriber | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
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 | |
$fp = fopen('wordpress.zip', 'w'); | |
$ch = curl_init('http://wordpress.org/latest.zip'); | |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); | |
curl_setopt($ch, CURLOPT_FILE, $fp); | |
curl_exec($ch); | |
curl_close($ch); | |
exec('unzip wordpress.zip'); | |
exec('cp -R wordpress/* .'); | |
exec('rm wordpress.zip'); |
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: Gist oEmbed | |
Plugin URI: http://ninnypants.com | |
Description: Embed gists into posts | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
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: Show Multisite IDs | |
Plugin URI: http://ninnypants.com | |
Description: Adds table column to show site ID | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
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 | |
// Better version over here: | |
// https://github.com/trepmal/Easy-Albums | |
//Plugin Name: Easy Albums | |
//Description: Put a group of galleries into an album, then put the album in a page. | |
/* | |
Quick release! |
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: Convert to Gallery | |
//Description: Extract attachment IDs from selection, reinsert as gallery shortcode. Use "convert to gallery" button in Text mode. Usefull if you accidentally bulk insert a number of images instead of inserting as gallery. | |
add_action( 'admin_print_footer_scripts', 'convert2gallery_quicktag', 100 ); | |
function convert2gallery_quicktag() { | |
?> | |
<script type="text/javascript"> | |
QTags.addButton( 'convert2gallery', 'convert to gallery', extract_and_convert ); |
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: Resize Original Upload | |
*/ | |
add_filter('wp_handle_upload', 'max_dims_for_new_uploads', 10, 2 ); | |
function max_dims_for_new_uploads( $array, $context ) { | |
// $array = array( 'file' => $new_file, 'url' => $url, 'type' => $type ) | |
// $context = 'upload' || 'sideload' |
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: Frameitron | |
Plugin URI: http://ninnypants.com | |
Description: Allow iframes in tinymce for all user levels | |
Version: 1.0 | |
Author: ninnypants | |
Author URI: http://ninnypants.com | |
License: GPL2 |
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 | |
/* | |
On an archive-type page, password-protected posts can be odd. | |
If the post is near the bottom, hitting submit reloads the page | |
taking you back to the top. This will simply change the referer | |
so that you are brought back to the post after clicking the | |
submit button on the password form. | |
*/ |
NewerOlder