WordPress.org

Make WordPress Core

Ticket #18785: 18785.embeds-test.diff

File 18785.embeds-test.diff, 1.5 KB (added by mbijon, 3 years ago)

Added media embeds to Dashboard Help menus. Image on Help>Screen Options, and Video on and Help>Content (sorry about YouTube embed, just rushing, didn't mean to endorse that content)

  • wp-admin/index.php

     
    2828        $current_screen->add_option('layout_columns', array('max' => 4, 'default' => 2) ); 
    2929 
    3030$current_screen->add_option_context(  
    31 '<p>test</p>' 
     31'<p>test</p>' . __('<div style="position:absolute; top:20px; right: 200px;"><img src="./images/wheel.png" alt="test image embed" />') . '</div>' 
    3232); 
    3333 
    3434// Help tabs 
     
    6969<p>' . __('<strong>Recent Drafts</strong> - Displays links to the 5 most recent draft posts you&#8217;ve started.') . '</p> 
    7070<p>' . __('<strong>WordPress Blog</strong> - Latest news from the official WordPress project.') . '</p> 
    7171<p>' . __('<strong>Other WordPress News</strong> - Shows the <a href="http://planet.wordpress.org" target="_blank">WordPress Planet</a> feed. You can configure it to show a different feed of your choosing.') . '</p> 
    72 <p>' . __('<strong>Plugins</strong> - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '</p>'; 
     72<p>' . __('<strong>Plugins</strong> - Features the most popular, newest, and recently updated plugins from the WordPress.org Plugin Directory.') . '</p> 
     73<div style="position:absolute; height:400px; top:20px; right: 200px;">' . __('<iframe width="560" height="315" src="http://www.youtube.com/embed/lKwN0Ug4m6M" frameborder="0" allowfullscreen></iframe>') . '</div>'; 
    7374 
    7475$current_screen->add_help_tab( array( 
    7576        'title'   => __('Content'),