WordPress.org

Make WordPress Core

Ticket #4803: wp_vanity.patch

File wp_vanity.patch, 2.3 KB (added by Viper007Bond, 8 years ago)

Rolled into a patch with slight modifications

  • wp-content/themes/classic/header.php

     
    66 
    77        <title><?php bloginfo('name'); ?><?php wp_title(); ?></title> 
    88 
    9         <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please --> 
    10  
    119        <style type="text/css" media="screen"> 
    1210                @import url( <?php bloginfo('stylesheet_url'); ?> ); 
    1311        </style> 
  • wp-content/themes/default/header.php

     
    66 
    77<title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title> 
    88 
    9 <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> 
    10  
    119<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> 
    1210<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> 
    1311<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> 
  • wp-includes/default-filters.php

     
    105105add_filter('comment_email', 'antispambot'); 
    106106 
    107107// Actions 
     108add_action('wp_head', 'wp_vanity'); 
     109add_action('admin_head', 'wp_vanity'); 
    108110add_action('wp_head', 'rsd_link'); 
    109111add_action('wp_head', 'locale_stylesheet'); 
    110112add_action('publish_future_post', 'wp_publish_post', 10, 1); 
  • wp-includes/functions.php

     
    13431343        ksort($submenu['themes.php'], SORT_NUMERIC); 
    13441344} 
    13451345 
     1346function wp_vanity() { 
     1347    echo "<meta name='generator' content='WordPress " . get_bloginfo('version') . "' />\n"; 
     1348} 
     1349 
    13461350// For PHP 5.2, make sure all output buffers are flushed 
    13471351// before our singletons our destroyed. 
    13481352function wp_ob_end_flush_all()