Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules
File: markdown.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Module Name: Markdown
[2] Fix | Delete
* Module Description: Write and format posts using clean, readable Markdown syntax.
[3] Fix | Delete
* Sort Order: 31
[4] Fix | Delete
* First Introduced: 2.8
[5] Fix | Delete
* Requires Connection: No
[6] Fix | Delete
* Auto Activate: No
[7] Fix | Delete
* Module Tags: Writing
[8] Fix | Delete
* Feature: Writing
[9] Fix | Delete
* Additional Search Queries: md, markdown
[10] Fix | Delete
*
[11] Fix | Delete
* @package automattic/jetpack
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[15] Fix | Delete
exit( 0 );
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
// Require the markdown class file.
[19] Fix | Delete
require __DIR__ . '/markdown/easy-markdown.php';
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Remove checkbox set in modules/markdown/easy-markdown.php.
[23] Fix | Delete
* We don't just remove the register_setting call there because the checkbox is
[24] Fix | Delete
* needed on WordPress.com, where the file is sync'ed verbatim.
[25] Fix | Delete
*/
[26] Fix | Delete
function jetpack_markdown_posting_always_on() {
[27] Fix | Delete
// why oh why isn't there a remove_settings_field?
[28] Fix | Delete
global $wp_settings_fields;
[29] Fix | Delete
if ( isset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] ) ) {
[30] Fix | Delete
unset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] );
[31] Fix | Delete
}
[32] Fix | Delete
}
[33] Fix | Delete
add_action( 'admin_init', 'jetpack_markdown_posting_always_on', 11 );
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function