Changeset 10192 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-learn/inc/class-lesson-plan.php
- Timestamp:
- 08/20/2020 07:45:41 PM (6 years ago)
- 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 277 277 278 278 /** 279 * o2does inline editing, so we also need to remove the class name that it looks for.280 * 281 * o2obeys the edit_post capability for displaying the edit link, so we also need to manually279 * 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 282 282 * add the edit link if it isn't there - it always redirects to GitHub, so it doesn't need to 283 283 * obey the edit_post capability in this instance. … … 332 332 } 333 333 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 */ 334 341 private static function get_markdown_edit_link( $post_id ) { 335 342 $markdown_source = Markdown_Import::get_markdown_source( $post_id ); … … 347 354 } 348 355 356 /** 357 * Source images from the GitHub repo. 358 * 359 * @param string $content 360 * 361 * @return string|string[] 362 */ 349 363 public static function replace_image_links( $content ) { 350 364 $post_id = get_the_ID();
Note: See TracChangeset
for help on using the changeset viewer.