| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /AppServ/www/app/webroot/new_news/wp-content/plugins/jetpack/modules/ |
Upload File : |
<?php
/**
* Module Name: Markdown
* Module Description: Write posts or pages in plain-text Markdown syntax
* Sort Order: 31
* First Introduced: 2.8
* Requires Connection: No
* Auto Activate: No
* Module Tags: Writing
* Feature: Writing
* Additional Search Queries: md, markdown
*/
include dirname( __FILE__ ) . '/markdown/easy-markdown.php';
/**
* Remove checkbox set in modules/markdown/easy-markdown.php.
* We don't just remove the register_setting call there because the checkbox is
* needed on WordPress.com, where the file is sync'ed verbatim.
*/
function jetpack_markdown_posting_always_on() {
// why oh why isn't there a remove_settings_field?
global $wp_settings_fields;
if ( isset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] ) ) {
unset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] );
}
}
add_action( 'admin_init', 'jetpack_markdown_posting_always_on', 11 );