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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Highlight | |
* Description: Use highlight.js on front end. Mark code with <code><pre class="language-php"><code>your code</code></pre></code> | |
* Version: 31.10.14 | |
* Required: 4.0 | |
* Author: Thomas Scholz | |
* Author URI: http://toscho.de | |
* License: MIT | |
* License URI: http://www.opensource.org/licenses/mit-license.php |
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 | |
namespace T5\Files; | |
/** | |
* Simple PSR-4 autoloader | |
* See http://codereview.stackexchange.com/a/150308/318 for an explanation | |
*/ | |
class Autoload | |
{ | |
/** |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Log in form widget | |
* Plugin URI: https://gist.github.com/toscho/c7459ee439fd2491c1f6 | |
* Description: Shows a log in form in a widget. | |
* Version: 13.10.15 | |
* Required: 4.0 | |
* Author: Thomas Scholz <info@toscho.de> | |
* Author URI: http://toscho.de | |
* License: MIT |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Fix HTTPS header on Apache | |
* Version: 2015.07.23 | |
* Author: toscho | |
* Author URI: http://toscho.de | |
* License: MIT | |
*/ | |
if ( empty ( $_SERVER['SERVER_SOFTWARE'] ) ) | |
return; |
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: Where am I? | |
* Description: Adds the current server name and WordPress path to the admin footer. | |
* Version: 2015.07.04 | |
* Author: toscho | |
* Author URI: http://wpkrauts.com/ | |
* License: MIT | |
* License URI: http://opensource.org/licenses/MIT | |
*/ | |
add_filter( 'admin_footer_text', function( $text ) { |
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: Mock wp_mail() | |
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() ) { | |
return true; | |
} |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Editor Shortlink | |
* Plugin URI: https://gist.github.com/toscho/e5a189d6715e57c7cdf2 | |
* Description: Show the shortlink in the editor. Requires at least PHP 5.3. | |
* Version: 08.05.15 | |
* Required: 4.0 | |
* Author: Thomas Scholz <info@toscho.de> | |
* Author URI: http://toscho.de | |
* License: MIT |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Short Feed | |
* Plugin URI: https://gist.github.com/toscho/86d6ebcdec3be4d04af8 | |
* Description: Creates a feed with just the excerpt, no matter what you have set for the main feed. Please visit the permalinks page once after activation. The feed is then available at <code>/feed/summary/</code>. Requires PHP 5.3. | |
* Version: 07.05.15 | |
* Required: 4.2 | |
* Author: Thomas Scholz <info@toscho.de> | |
* Author URI: http://toscho.de | |
* License: MIT |
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: T5 Debug Request | |
*/ | |
is_admin() || add_action( 'shutdown', function() { | |
if ( ! current_user_can( 'update_core' ) ) | |
return; | |
print '<pre>REQUEST'; |
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 # -*- coding: utf-8 -*- | |
/** | |
* Plugin Name: T5 Disable Open Sans | |
* Version: 2015.04.01 | |
* Author: toscho | |
* License: MIT | |
*/ | |
add_filter( 'gettext_with_context', 'disable_open_sans', 10, 4 ); |
NewerOlder