calypsoify
3 years ago
carousel
3 years ago
cloudflare-analytics
4 years ago
comment-likes
5 years ago
comments
3 years ago
contact-form
1 year ago
custom-css
3 years ago
custom-post-types
3 years ago
geo-location
4 years ago
google-analytics
3 years ago
gravatar
6 years ago
infinite-scroll
3 years ago
likes
3 years ago
markdown
3 years ago
masterbar
3 years ago
memberships
3 years ago
photon-cdn
3 years ago
plugin-search
4 years ago
post-by-email
3 years ago
related-posts
3 years ago
scan
3 years ago
seo-tools
3 years ago
sharedaddy
3 years ago
shortcodes
3 years ago
simple-payments
3 years ago
site-icon
4 years ago
sitemaps
3 years ago
sso
3 years ago
stats
3 years ago
subscriptions
3 years ago
theme-tools
3 years ago
tiled-gallery
3 years ago
verification-tools
4 years ago
videopress
3 years ago
widget-visibility
3 years ago
widgets
3 years ago
woocommerce-analytics
3 years ago
wordads
3 years ago
wpcom-block-editor
3 years ago
wpcom-tos
5 years ago
action-bar.php
3 years ago
carousel.php
4 years ago
comment-likes.php
3 years ago
comments.php
4 years ago
contact-form.php
3 years ago
copy-post.php
3 years ago
custom-content-types.php
4 years ago
custom-css.php
3 years ago
enhanced-distribution.php
4 years ago
geo-location.php
4 years ago
google-analytics.php
4 years ago
google-fonts.php
3 years ago
gravatar-hovercards.php
3 years ago
infinite-scroll.php
3 years ago
json-api.php
5 years ago
latex.php
4 years ago
lazy-images.php
4 years ago
likes.php
3 years ago
markdown.php
4 years ago
masterbar.php
4 years ago
module-extras.php
4 years ago
module-headings.php
3 years ago
module-info.php
3 years ago
monitor.php
4 years ago
notes.php
3 years ago
photon-cdn.php
3 years ago
photon.php
3 years ago
plugin-search.php
3 years ago
post-by-email.php
5 years ago
post-list.php
4 years ago
protect.php
3 years ago
publicize.php
3 years ago
related-posts.php
4 years ago
search.php
4 years ago
seo-tools.php
4 years ago
sharedaddy.php
4 years ago
shortcodes.php
3 years ago
shortlinks.php
4 years ago
sitemaps.php
4 years ago
sso.php
3 years ago
stats.php
3 years ago
subscriptions.php
3 years ago
theme-tools.php
3 years ago
tiled-gallery.php
4 years ago
vaultpress.php
4 years ago
verification-tools.php
5 years ago
videopress.php
4 years ago
waf.php
3 years ago
widget-visibility.php
4 years ago
widgets.php
3 years ago
woocommerce-analytics.php
5 years ago
wordads.php
5 years ago
wpgroho.js
6 years ago
markdown.php
32 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Module Name: Markdown |
| 4 | * Module Description: Write posts or pages in plain-text Markdown syntax |
| 5 | * Sort Order: 31 |
| 6 | * First Introduced: 2.8 |
| 7 | * Requires Connection: No |
| 8 | * Auto Activate: No |
| 9 | * Module Tags: Writing |
| 10 | * Feature: Writing |
| 11 | * Additional Search Queries: md, markdown |
| 12 | * |
| 13 | * @package automattic/jetpack |
| 14 | */ |
| 15 | |
| 16 | // Require the markdown class file. |
| 17 | require __DIR__ . '/markdown/easy-markdown.php'; |
| 18 | |
| 19 | /** |
| 20 | * Remove checkbox set in modules/markdown/easy-markdown.php. |
| 21 | * We don't just remove the register_setting call there because the checkbox is |
| 22 | * needed on WordPress.com, where the file is sync'ed verbatim. |
| 23 | */ |
| 24 | function jetpack_markdown_posting_always_on() { |
| 25 | // why oh why isn't there a remove_settings_field? |
| 26 | global $wp_settings_fields; |
| 27 | if ( isset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] ) ) { |
| 28 | unset( $wp_settings_fields['writing']['default'][ WPCom_Markdown::POST_OPTION ] ); |
| 29 | } |
| 30 | } |
| 31 | add_action( 'admin_init', 'jetpack_markdown_posting_always_on', 11 ); |
| 32 |