Changeset 43571 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r43377 r43571 646 646 case 'siteurl': // DEPRECATED 647 647 _deprecated_argument( 648 __FUNCTION__, '2.2.0', sprintf( 648 __FUNCTION__, 649 '2.2.0', 650 sprintf( 649 651 /* translators: 1: 'siteurl'/'home' argument, 2: bloginfo() function name, 3: 'url' argument */ 650 652 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s option instead.' ), … … 723 725 case 'text_direction': 724 726 _deprecated_argument( 725 __FUNCTION__, '2.2.0', sprintf( 727 __FUNCTION__, 728 '2.2.0', 729 sprintf( 726 730 /* translators: 1: 'text_direction' argument, 2: bloginfo() function name, 3: is_rtl() function name */ 727 731 __( 'The %1$s option is deprecated for the family of %2$s functions. Use the %3$s function instead.' ), … … 1887 1891 'm' => $arc_year, 1888 1892 'w' => $result->week, 1889 ), home_url( '/' ) 1893 ), 1894 home_url( '/' ) 1890 1895 ); 1891 1896 if ( 'post' !== $r['post_type'] ) { … … 2107 2112 FROM $wpdb->posts WHERE post_date >= '{$thisyear}-{$thismonth}-01 00:00:00' 2108 2113 AND post_type = 'post' AND post_status = 'publish' 2109 AND post_date <= '{$thisyear}-{$thismonth}-{$last_day} 23:59:59'", ARRAY_N 2114 AND post_date <= '{$thisyear}-{$thismonth}-{$last_day} 23:59:59'", 2115 ARRAY_N 2110 2116 ); 2111 2117 if ( $dayswithposts ) { … … 3360 3366 if ( 'text/css' === $type ) { 3361 3367 $settings['codemirror'] = array_merge( 3362 $settings['codemirror'], array( 3368 $settings['codemirror'], 3369 array( 3363 3370 'mode' => 'css', 3364 3371 'lint' => true, … … 3369 3376 } elseif ( 'text/x-scss' === $type || 'text/x-less' === $type || 'text/x-sass' === $type ) { 3370 3377 $settings['codemirror'] = array_merge( 3371 $settings['codemirror'], array( 3378 $settings['codemirror'], 3379 array( 3372 3380 'mode' => $type, 3373 3381 'lint' => false, … … 3378 3386 } elseif ( 'text/x-diff' === $type ) { 3379 3387 $settings['codemirror'] = array_merge( 3380 $settings['codemirror'], array( 3388 $settings['codemirror'], 3389 array( 3381 3390 'mode' => 'diff', 3382 3391 ) … … 3384 3393 } elseif ( 'text/html' === $type ) { 3385 3394 $settings['codemirror'] = array_merge( 3386 $settings['codemirror'], array( 3395 $settings['codemirror'], 3396 array( 3387 3397 'mode' => 'htmlmixed', 3388 3398 'lint' => true, … … 3400 3410 } elseif ( 'text/x-gfm' === $type ) { 3401 3411 $settings['codemirror'] = array_merge( 3402 $settings['codemirror'], array( 3412 $settings['codemirror'], 3413 array( 3403 3414 'mode' => 'gfm', 3404 3415 'highlightFormatting' => true, … … 3407 3418 } elseif ( 'application/javascript' === $type || 'text/javascript' === $type ) { 3408 3419 $settings['codemirror'] = array_merge( 3409 $settings['codemirror'], array( 3420 $settings['codemirror'], 3421 array( 3410 3422 'mode' => 'javascript', 3411 3423 'lint' => true, … … 3416 3428 } elseif ( false !== strpos( $type, 'json' ) ) { 3417 3429 $settings['codemirror'] = array_merge( 3418 $settings['codemirror'], array( 3430 $settings['codemirror'], 3431 array( 3419 3432 'mode' => array( 3420 3433 'name' => 'javascript', … … 3432 3445 } elseif ( false !== strpos( $type, 'jsx' ) ) { 3433 3446 $settings['codemirror'] = array_merge( 3434 $settings['codemirror'], array( 3447 $settings['codemirror'], 3448 array( 3435 3449 'mode' => 'jsx', 3436 3450 'autoCloseBrackets' => true, … … 3440 3454 } elseif ( 'text/x-markdown' === $type ) { 3441 3455 $settings['codemirror'] = array_merge( 3442 $settings['codemirror'], array( 3456 $settings['codemirror'], 3457 array( 3443 3458 'mode' => 'markdown', 3444 3459 'highlightFormatting' => true, … … 3447 3462 } elseif ( 'text/nginx' === $type ) { 3448 3463 $settings['codemirror'] = array_merge( 3449 $settings['codemirror'], array( 3464 $settings['codemirror'], 3465 array( 3450 3466 'mode' => 'nginx', 3451 3467 ) … … 3453 3469 } elseif ( 'application/x-httpd-php' === $type ) { 3454 3470 $settings['codemirror'] = array_merge( 3455 $settings['codemirror'], array( 3471 $settings['codemirror'], 3472 array( 3456 3473 'mode' => 'php', 3457 3474 'autoCloseBrackets' => true, … … 3465 3482 } elseif ( 'text/x-sql' === $type || 'text/x-mysql' === $type ) { 3466 3483 $settings['codemirror'] = array_merge( 3467 $settings['codemirror'], array( 3484 $settings['codemirror'], 3485 array( 3468 3486 'mode' => 'sql', 3469 3487 'autoCloseBrackets' => true, … … 3473 3491 } elseif ( false !== strpos( $type, 'xml' ) ) { 3474 3492 $settings['codemirror'] = array_merge( 3475 $settings['codemirror'], array( 3493 $settings['codemirror'], 3494 array( 3476 3495 'mode' => 'xml', 3477 3496 'autoCloseBrackets' => true, … … 3484 3503 } elseif ( 'text/x-yaml' === $type ) { 3485 3504 $settings['codemirror'] = array_merge( 3486 $settings['codemirror'], array( 3505 $settings['codemirror'], 3506 array( 3487 3507 'mode' => 'yaml', 3488 3508 ) … … 3974 3994 3975 3995 wp_admin_css_color( 3976 'fresh', _x( 'Default', 'admin color scheme' ), 3996 'fresh', 3997 _x( 'Default', 'admin color scheme' ), 3977 3998 false, 3978 3999 array( '#222', '#333', '#0073aa', '#00a0d2' ), … … 3990 4011 3991 4012 wp_admin_css_color( 3992 'light', _x( 'Light', 'admin color scheme' ), 4013 'light', 4014 _x( 'Light', 'admin color scheme' ), 3993 4015 admin_url( "css/colors/light/colors$suffix.css" ), 3994 4016 array( '#e5e5e5', '#999', '#d64e07', '#04a4cc' ), … … 4001 4023 4002 4024 wp_admin_css_color( 4003 'blue', _x( 'Blue', 'admin color scheme' ), 4025 'blue', 4026 _x( 'Blue', 'admin color scheme' ), 4004 4027 admin_url( "css/colors/blue/colors$suffix.css" ), 4005 4028 array( '#096484', '#4796b3', '#52accc', '#74B6CE' ), … … 4012 4035 4013 4036 wp_admin_css_color( 4014 'midnight', _x( 'Midnight', 'admin color scheme' ), 4037 'midnight', 4038 _x( 'Midnight', 'admin color scheme' ), 4015 4039 admin_url( "css/colors/midnight/colors$suffix.css" ), 4016 4040 array( '#25282b', '#363b3f', '#69a8bb', '#e14d43' ), … … 4023 4047 4024 4048 wp_admin_css_color( 4025 'sunrise', _x( 'Sunrise', 'admin color scheme' ), 4049 'sunrise', 4050 _x( 'Sunrise', 'admin color scheme' ), 4026 4051 admin_url( "css/colors/sunrise/colors$suffix.css" ), 4027 4052 array( '#b43c38', '#cf4944', '#dd823b', '#ccaf0b' ), … … 4034 4059 4035 4060 wp_admin_css_color( 4036 'ectoplasm', _x( 'Ectoplasm', 'admin color scheme' ), 4061 'ectoplasm', 4062 _x( 'Ectoplasm', 'admin color scheme' ), 4037 4063 admin_url( "css/colors/ectoplasm/colors$suffix.css" ), 4038 4064 array( '#413256', '#523f6d', '#a3b745', '#d46f15' ), … … 4045 4071 4046 4072 wp_admin_css_color( 4047 'ocean', _x( 'Ocean', 'admin color scheme' ), 4073 'ocean', 4074 _x( 'Ocean', 'admin color scheme' ), 4048 4075 admin_url( "css/colors/ocean/colors$suffix.css" ), 4049 4076 array( '#627c83', '#738e96', '#9ebaa0', '#aa9d88' ), … … 4056 4083 4057 4084 wp_admin_css_color( 4058 'coffee', _x( 'Coffee', 'admin color scheme' ), 4085 'coffee', 4086 _x( 'Coffee', 'admin color scheme' ), 4059 4087 admin_url( "css/colors/coffee/colors$suffix.css" ), 4060 4088 array( '#46403c', '#59524c', '#c7a589', '#9ea476' ),
Note: See TracChangeset
for help on using the changeset viewer.