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: Standard WP Admin Page Check | |
Description: Example code. | |
Version: 1.0 | |
Author: Alex King | |
Author URI: http://alexking.org | |
*/ |
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 | |
// customizations to have ShareThis nicely integrated into FavePersonal. | |
// step 1, disable auto-addition to posts | |
// this adds the ShareThis button to the post sidebar for content posts only | |
if (function_exists('st_makeEntries')) { | |
add_action('favepersonal_content_sidebar_after', 'sharethis_button'); | |
} |
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
bbcurl () { curl $1 | open -a BBEdit -f; } |
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: oEmbed gist (AK) | |
Plugin URI: http://firegoby.theta.ne.jp/wp/oembed-gist | |
Description: Embed source from gist.github. | |
Author: Takayuki Miyauchi (THETA NETWORKS Co,.Ltd) | |
Version: 1.1.0 | |
Author URI: http://firegoby.theta.ne.jp/ | |
*/ |
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 | |
function pingback_format_link_url($post_links, $post_id) { | |
$url = get_post_meta($post_id, '_format_link_url', true); | |
if (!empty($url) && !in_array($url, $post_links)) { | |
$post_links[] = $url; | |
} | |
return $post_links; | |
} | |
add_filter('pre_ping_post_links', 'pingback_format_link_url', 10, 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 | |
/** | |
* Change the brightness of the passed in color | |
* | |
* $diff should be negative to go darker, positive to go lighter and | |
* is subtracted from the decimal (0-255) value of the color | |
* | |
* @param string $hex color to be modified | |
* @param string $diff amount to change the color |
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
My fix is to do the following: | |
$: rm -rf core/kohana | |
$: vim .gitmodules | |
Delete the submodule path to kohana from this file. | |
$: git rm --cached core/kohana | |
$: git submodule add [email protected]:crowdfavorite/kohana.git core/kohana | |
$: git submodule init --recursive |
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 | |
function cfcp_image_size_input_fields_sizes($sizes) { | |
$sizes['medium-img'] = 'Content Width'; | |
$sizes['banner-img'] = 'Content Width Short (Cropped)'; | |
$sizes['large-img'] = 'Full Width'; | |
return $sizes; | |
} | |
add_filter('image_size_names_choose', 'cfcp_image_size_input_fields_sizes'); |
OlderNewer