WordPress.org

Make WordPress Core

Ticket #3426: 3426_favicon.diff

File 3426_favicon.diff, 2.2 KB (added by robertaccettura, 12 years ago)

Alternate Patch

  • wp-settings.php

     
    112112if ( !defined('WP_CONTENT_DIR') )
    113113        define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
    114114
     115// Special case for missing favicon
     116if ($_SERVER['REQUEST_URI'] == '/favicon.ico'){
     117        header('Content-Type: image/vnd.microsoft.icon');
     118        print base64_decode('AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABILAAASCwAAAAAAAAAAAAAAAAAKAAAAFgAAACYAAAA3NDQ0ZWpqarV8fHzjbW1t/21tbf98fHzjampqtTQ0NGUAAAA3AAAAJgAAABYAAAAKAAAAAAAAAAAAAAAAiIiIcoqKiu6xsbG/4ODgzf///+3////t4ODgzbGxsb+KioruiIiIcgAAAAAAAAAAAAAAAAAAAACIiIgGiIiIt5eXl9bq6urb+Pj4/9zc3P+cnJz/nJyc/8LCwv//////6urq25iYmNSIiIi3iIiIBgAAAAAAAAAAiIiIk5ycnM309PTztLS0//n5+f/y8vL/ioqK/4GBgf/Ly8v//v7//8fHx//w8PDznJyczYiIiJAAAAAAiIiILYqKiuzz8/PZtLS0/8LCwv/+/v7/8fHx/5KSkv9ycnL/8/Pz//79/v/Y2Nn/mJiY//Ly8tiKiorsiIiILYiIiJOysrK91NTU/6Ghof/h4eH//v7+/62trf+zs7P/hISE//7+///g4OD/4+Pj/4eHh/++vr7/srKyvYiIiJCIiIjb4+PjzLGxsf+mpqb//f39/+jo6P+IiIv/19fX/8DAwP/+/v7/sLCw/8PDw/+7u7v/lpaW/+Pj48yIiIjViIiI+fj4+O6dnZ3/xsbG//7+/v/Dw8P/k5OT/8rKyv/+/v7//Pz8/5WVlf+qqqr/7Ozs/5mZmf/5+fnuiIiI84iIiPn8/PztmJiY/+3t7f/7+/v/nJyc/5SUlP+3t7f//v7+/93d3f+IiIv/np2e//////+vr6//+Pj47oiIiPCIiIjY4+PjzLi4uP//////4uLi/5GRkf+QkJD/3Nzc//////+zs7P/kJCQ/6+urv//////09LT/+Pj48yIiIjViIiIkLKysr36+vr//////9vb2/+SkpL/srKy//7+/v//////qqqq/42Njf/h4uH///////Dw8f+ysrK9iIiIjYiIiC2Kioru+Pj417i4uP+0tLT/jo6O/7Kysv+0tLT/tLS0/6mpqf+JiYn/+vr6///////5+fniioqK7oiIiCoAAAAAiIiIkJubm8/w8PDym5ub/4aGhv+Ghob/hoaG/4aGhv+Ghob/hoaG/7a2tv/////2m5ubz4iIiI0AAAAAAAAAAIiIiAaIiIi3lpaW2erq6tvFxcX/np6e/4iIiP+Dg4P/m5ub/8rKyv/t7e3alpaW2YiIiLeIiIgGAAAAAAAAAAAAAAAAAAAAAIiIiHKKiorur6+vwN7e3s7i4uLv4uLi797e3s6vr6/AioqK7oiIiHIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAiIiIJ4iIiI2IiIjMiIiI/IiIiPyIiIjMiIiIjYiIiCcAAAAAAAAAAAAAAAAAAAAAAAAAAOAHAACAAQAAgAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAEAAIABAADgBwAA8A8AAA==');
     119        exit;
     120}
     121
    115122if ( file_exists(ABSPATH . '.maintenance') && !defined('WP_INSTALLING') ) {
    116123        include(ABSPATH . '.maintenance');
    117124        // If the $upgrading timestamp is older than 10 minutes, don't die.