WordPress.org

Make WordPress Core

Ticket #5023: wlw-head.diff

File wlw-head.diff, 1.3 KB (added by josephscott, 14 years ago)

Changes to wp core to add the WLW manifest file using the wp_head hook.

  • wp-includes/general-template.php

     
    829829        echo '  <link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . get_bloginfo('wpurl') . "/xmlrpc.php?rsd\" />\n";
    830830}
    831831
     832function wlwmanifest_link() {
     833        echo ' <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="'
     834                . get_bloginfo('wpurl') . '/wp-includes/wlwmanifest.xml" /> ';
     835}
     836
    832837function noindex() {
    833838        // If the blog is not public, tell robots to go away.
    834839        if ( '0' == get_option('blog_public') )
  • wp-includes/default-filters.php

     
    136136
    137137// Actions
    138138add_action('wp_head', 'rsd_link');
     139add_action('wp_head', 'wlwmanifest_link');
    139140add_action('wp_head', 'locale_stylesheet');
    140141add_action('publish_future_post', 'wp_publish_post', 10, 1);
    141142add_action('wp_head', 'noindex', 1);
     
    165166add_action('edit_post', 'wp_check_for_changed_slugs');
    166167add_action('edit_form_advanced', 'wp_remember_old_slug');
    167168
    168 ?>
    169  No newline at end of file
     169?>