This file contains hidden or 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 | |
| /* Remove the width and height attributes from wp image uploader. | |
| http://blog.wpjam.com/m/how-to-remove-the-width-and-height-attributes-from-wp-image-uploader/ | |
| ------------------------------------------------------------------------------------------ */ | |
| add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 ); | |
| add_filter( 'image_send_to_editor', 'remove_width_attribute', 10 ); | |
| function remove_width_attribute( $html ) { |
This file contains hidden or 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 | |
| /* Remove autolinks in comments | |
| http://blog.wpjam.com/m/remove-autolinks-in-comments/ | |
| -------------------------------------------------- */ | |
| remove_filter('comment_text', 'make_clickable', 9); | |
| ?> |
This file contains hidden or 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 | |
| /* wp_title() expand | |
| https://gist.github.com/mcatm/5113723 | |
| ---------------------------------- */ | |
| function wp_title_expand($str = null) { | |
| global $page, $paged; | |
| $str .= (!$str) ? get_bloginfo('name') : ' - '.get_bloginfo('name'); |
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # nginx - this script starts and stops the nginx daemin | |
| # | |
| # chkconfig: - 85 15 | |
| # description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
| # proxy and IMAP/POP3 proxy server | |
| # processname: nginx | |
| # config: /usr/local/nginx/conf/nginx.conf | |
| # pidfile: /usr/local/nginx/logs/nginx.pid |
This file contains hidden or 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 | |
| /** | |
| * WordPress中文版 自动下载安装脚本 | |
| * v3.0.1 | |
| * | |
| * 作者:沙渺 http://shamiao.com | |
| * 脚本主页:http://shamiao.com/wp-downunzip | |
| **/ | |
| define('SCRIPT_VERSION', '3.0.1'); |
OlderNewer