Making WordPress.org


Ignore:
Timestamp:
08/20/2020 07:45:41 PM (6 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/38e7793fd20434d72ca898988d017ba2009fb677...3ee18f705ae3d027fff4434eb08917ef16c955b8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/class-lesson-plan.php

    r10169 r10192  
    277277
    278278    /**
    279      * o2 does inline editing, so we also need to remove the class name that it looks for.
    280      *
    281      * o2 obeys the edit_post capability for displaying the edit link, so we also need to manually
     279     * The o2 plugin does inline editing, so we also need to remove the class name that it looks for.
     280     *
     281     * The o2 plugin obeys the edit_post capability for displaying the edit link, so we also need to manually
    282282     * add the edit link if it isn't there - it always redirects to GitHub, so it doesn't need to
    283283     * obey the edit_post capability in this instance.
     
    332332    }
    333333
     334    /**
     335     * Get a link to the wptrainingteam GitHub repo.
     336     *
     337     * @param int $post_id
     338     *
     339     * @return mixed|string|string[]|\WP_Error
     340     */
    334341    private static function get_markdown_edit_link( $post_id ) {
    335342        $markdown_source = Markdown_Import::get_markdown_source( $post_id );
     
    347354    }
    348355
     356    /**
     357     * Source images from the GitHub repo.
     358     *
     359     * @param string $content
     360     *
     361     * @return string|string[]
     362     */
    349363    public static function replace_image_links( $content ) {
    350364        $post_id         = get_the_ID();
Note: See TracChangeset for help on using the changeset viewer.