Make WordPress Core

Ticket #10640: 10640.3.diff

File 10640.3.diff, 962 bytes (added by miqrogroove, 15 years ago)

Fix the actions.

  • wp-includes/default-filters.php

     
    191191add_action( 'wp_head',             'wp_generator'                         );
    192192add_action( 'wp_head',             'rel_canonical'                        );
    193193add_action( 'wp_footer',           'wp_print_footer_scripts'              );
    194 add_action( 'wp_head',             'wp_shortlink_wp_head'                );
    195 add_action( 'wp',                  'wp_shortlink_header'                  );
     194add_action( 'wp_head',             'wp_shortlink_wp_head',          10, 0 );
     195add_action( 'template_redirect',   'wp_shortlink_header',           11, 0 );
    196196
    197197// Feed Generator Tags
    198198foreach ( array( 'rss2_head', 'commentsrss2_head', 'rss_head', 'rdf_header', 'atom_head', 'comments_atom_head', 'opml_head', 'app_head' ) as $action ) {