X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/fa11948979fd6a4ea5705dc613b239699a459db3..256a3b381f63716209b3527d0a14442ae570c283:/wp-includes/general-template.php
diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php
index 90e19d4b..7a83579c 100644
--- a/wp-includes/general-template.php
+++ b/wp-includes/general-template.php
@@ -714,7 +714,15 @@ function post_type_archive_title( $prefix = '', $display = true ) {
$post_type = reset( $post_type );
$post_type_obj = get_post_type_object( $post_type );
- $title = apply_filters('post_type_archive_title', $post_type_obj->labels->name );
+ /**
+ * Filter the post type archive title.
+ *
+ * @since 3.1.0
+ *
+ * @param string $post_type_name Post type 'name' label.
+ * @param string $post_type Post type.
+ */
+ $title = apply_filters( 'post_type_archive_title', $post_type_obj->labels->name, $post_type );
if ( $display )
echo $prefix . $title;
@@ -1785,7 +1793,7 @@ function noindex() {
* @since 3.3.0
*/
function wp_no_robots() {
- echo "\n";
+ echo "\n";
}
/**
@@ -2085,14 +2093,20 @@ function paginate_links( $args = '' ) {
* @param string $name The name of the theme.
* @param string $url The url of the css file containing the colour scheme.
* @param array $colors Optional An array of CSS color definitions which are used to give the user a feel for the theme.
+ * @param array $icons Optional An array of CSS color definitions used to color any SVG icons
*/
-function wp_admin_css_color($key, $name, $url, $colors = array()) {
+function wp_admin_css_color( $key, $name, $url, $colors = array(), $icons = array() ) {
global $_wp_admin_css_colors;
if ( !isset($_wp_admin_css_colors) )
$_wp_admin_css_colors = array();
- $_wp_admin_css_colors[$key] = (object) array('name' => $name, 'url' => $url, 'colors' => $colors);
+ $_wp_admin_css_colors[$key] = (object) array(
+ 'name' => $name,
+ 'url' => $url,
+ 'colors' => $colors,
+ 'icon_colors' => $icons,
+ );
}
/**
@@ -2101,10 +2115,61 @@ function wp_admin_css_color($key, $name, $url, $colors = array()) {
* @since 3.0.0
*/
function register_admin_color_schemes() {
- wp_admin_css_color( 'classic', _x( 'Blue', 'admin color scheme' ), admin_url( 'css/colors-classic.min.css' ),
- array( '#5589aa', '#cfdfe9', '#d1e5ee', '#eff8ff' ) );
- wp_admin_css_color( 'fresh', _x( 'Gray', 'admin color scheme' ), admin_url( 'css/colors-fresh.min.css' ),
- array( '#555', '#a0a0a0', '#ccc', '#f1f1f1' ) );
+ $suffix = is_rtl() ? '-rtl' : '';
+ $suffix .= defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
+
+ wp_admin_css_color( 'fresh', _x( 'Default', 'admin color scheme' ),
+ admin_url( "css/colors$suffix.css" ),
+ array( '#222', '#333', '#0074a2', '#2ea2cc' ),
+ array( 'base' => '#999', 'focus' => '#2ea2cc', 'current' => '#fff' )
+ );
+
+ // Other color schemes are not available when running out of src
+ if ( false !== strpos( $GLOBALS['wp_version'], '-src' ) )
+ return;
+
+ wp_admin_css_color( 'light', _x( 'Light', 'admin color scheme' ),
+ admin_url( "css/colors/light/colors$suffix.css" ),
+ array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ),
+ array( 'base' => '#999', 'focus' => '#ccc', 'current' => '#ccc' )
+ );
+
+ wp_admin_css_color( 'blue', _x( 'Blue', 'admin color scheme' ),
+ admin_url( "css/colors/blue/colors$suffix.css" ),
+ array( '#096484', '#4796b3', '#52accc', '#74B6CE' ),
+ array( 'base' => '#e5f8ff', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
+ wp_admin_css_color( 'midnight', _x( 'Midnight', 'admin color scheme' ),
+ admin_url( "css/colors/midnight/colors$suffix.css" ),
+ array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ),
+ array( 'base' => '#f1f2f3', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
+ wp_admin_css_color( 'sunrise', _x( 'Sunrise', 'admin color scheme' ),
+ admin_url( "css/colors/sunrise/colors$suffix.css" ),
+ array( '#b43c38', '#cf4944', '#dd823b', '#ccaf0b' ),
+ array( 'base' => '#f3f1f1', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
+ wp_admin_css_color( 'ectoplasm', _x( 'Ectoplasm', 'admin color scheme' ),
+ admin_url( "css/colors/ectoplasm/colors$suffix.css" ),
+ array( '#413256', '#523f6d', '#a3b745', '#d46f15' ),
+ array( 'base' => '#ece6f6', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
+ wp_admin_css_color( 'ocean', _x( 'Ocean', 'admin color scheme' ),
+ admin_url( "css/colors/ocean/colors$suffix.css" ),
+ array( '#627c83', '#738e96', '#9ebaa0', '#aa9d88' ),
+ array( 'base' => '#f2fcff', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
+ wp_admin_css_color( 'coffee', _x( 'Coffee', 'admin color scheme' ),
+ admin_url( "css/colors/coffee/colors$suffix.css" ),
+ array( '#46403c', '#59524c', '#c7a589', '#9ea476' ),
+ array( 'base' => '#f3f2f1', 'focus' => '#fff', 'current' => '#fff' )
+ );
+
}
/**