Make WordPress Core


Ignore:
Timestamp:
06/29/2015 12:57:35 PM (9 years ago)
Author:
obenland
Message:

Introducing Site Icon, favicon management for WordPress.

This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving .ico support
and additional icons to plugins to add.

Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r32964 r32994  
    17791779    }
    17801780
     1781    if ( $post->ID == get_option( 'site_icon' ) ) {
     1782        $media_states[] = __( 'Site Icon' );
     1783    }
     1784
    17811785    /**
    17821786     * Filter the default media display states for items in the Media list table.
     
    17851789     *
    17861790     * @param array $media_states An array of media states. Default 'Header Image',
    1787      *                            'Background Image'.
     1791     *                            'Background Image', 'Site Icon'.
    17881792     */
    17891793    $media_states = apply_filters( 'display_media_states', $media_states );
Note: See TracChangeset for help on using the changeset viewer.