WordPress.org

Making WordPress.org

Changeset 4733


Ignore:
Timestamp:
01/19/2017 04:51:14 PM (3 years ago)
Author:
danielbachhuber
Message:

make/cli: Functional prototype of markdown importer

Given a markdown_source meta value stored on a Handbook page,
the "Import" button will fetch the source, transform to HTML
and update the post_content field.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-cli
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-cli/wporg-cli.php

    r4732 r4733  
    88 * License:     GPLv2 or later
    99 */
     10
     11require_once dirname( __FILE__ ) . '/inc/class-markdown-import.php';
     12
     13/**
     14 * Registry of actions and filters
     15 */
     16add_action( 'load-post.php', array( 'WPOrg_Cli\Markdown_Import', 'action_load_post_php' ) );
     17add_action( 'edit_form_after_title', array( 'WPOrg_Cli\Markdown_Import', 'action_edit_form_after_title' ) );
     18add_action( 'save_post', array( 'WPOrg_Cli\Markdown_Import', 'action_save_post' ) );
Note: See TracChangeset for help on using the changeset viewer.