Make WordPress Core

Ticket #40138: 40138.diff

File 40138.diff, 10.2 KB (added by xkon, 7 years ago)

Standards Update.

  • src/wp-content/themes/twentyeleven/functions.php

     
    743743
    744744        return $images;
    745745}
     746
     747/**
     748 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     749 *
     750 * @since Twenty Eleven 2.6
     751 *
     752 * @param array $args Arguments for tag cloud widget.
     753 * @return array A new modified arguments.
     754 */
     755function twentyeleven_widget_tag_cloud_args( $args ) {
     756        $args['largest']  = 22;
     757        $args['smallest'] = 8;
     758        $args['unit']     = 'pt';
     759        $args['format']   = 'list';
     760        return $args;
     761}
     762add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' );
  • src/wp-content/themes/twentyeleven/style.css

     
    23322332        font-weight: bold;
    23332333}
    23342334
     2335/* Tag Cloud UL Style Fixes */
    23352336
     2337.tagcloud ul {
     2338        list-style-type: none;
     2339}
     2340
     2341.tagcloud ul li {
     2342        display: inline-block;
     2343}
     2344
     2345
    23362346/* =Responsive Structure
    23372347----------------------------------------------- */
    23382348
  • src/wp-content/themes/twentyfifteen/functions.php

     
    386386add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' );
    387387
    388388/**
     389 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     390 *
     391 * @since Twenty Fifteen 1.8
     392 *
     393 * @param array $args Arguments for tag cloud widget.
     394 * @return array A new modified arguments.
     395 */
     396function twentyfifteen_widget_tag_cloud_args( $args ) {
     397        $args['largest']  = 22;
     398        $args['smallest'] = 8;
     399        $args['unit']     = 'pt';
     400        $args['format']   = 'list';
     401        return $args;
     402}
     403add_filter( 'widget_tag_cloud_args', 'twentyfifteen_widget_tag_cloud_args' );
     404
     405
     406/**
    389407 * Implement the Custom Header feature.
    390408 *
    391409 * @since Twenty Fifteen 1.0
  • src/wp-content/themes/twentyfifteen/style.css

     
    26812681        margin-bottom: 0;
    26822682}
    26832683
     2684/* Tag Cloud UL Style Fixes */
    26842685
     2686.tagcloud ul {
     2687        list-style-type: none;
     2688}
     2689
     2690.tagcloud ul li {
     2691        display: inline-block;
     2692        margin: 4px 4px 0 0;
     2693}
     2694
     2695
    26852696/**
    26862697 * 16.0 Media Queries
    26872698 */
  • src/wp-content/themes/twentyfourteen/functions.php

     
    527527}
    528528add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 );
    529529
     530
     531/**
     532 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     533 *
     534 * @since Twenty Fourteen 2.0
     535 *
     536 * @param array $args Arguments for tag cloud widget.
     537 * @return array A new modified arguments.
     538 */
     539function twentyfourteen_widget_tag_cloud_args( $args ) {
     540        $args['largest']  = 22;
     541        $args['smallest'] = 8;
     542        $args['unit']     = 'pt';
     543        $args['format']   = 'list';
     544        return $args;
     545}
     546add_filter( 'widget_tag_cloud_args', 'twentyfourteen_widget_tag_cloud_args' );
     547
     548
    530549// Implement Custom Header features.
    531550require get_template_directory() . '/inc/custom-header.php';
    532551
  • src/wp-content/themes/twentyfourteen/style.css

     
    31203120        width: auto;
    31213121}
    31223122
     3123/* Tag Cloud UL Style Fixes */
    31233124
     3125.tagcloud ul {
     3126        list-style-type: none;
     3127}
     3128
     3129.tagcloud ul li {
     3130        display: inline-block;
     3131        margin: 4px 4px 0 0;
     3132}
     3133
     3134
    31243135/**
    31253136 * 11.0 Media Queries
    31263137 * -----------------------------------------------------------------------------
  • src/wp-content/themes/twentysixteen/functions.php

     
    407407/**
    408408 * Modifies tag cloud widget arguments to have all tags in the widget same font size.
    409409 *
    410  * @since Twenty Sixteen 1.1
     410 * @since Twenty Sixteen 1.3
    411411 *
    412412 * @param array $args Arguments for tag cloud widget.
    413413 * @return array A new modified arguments.
    414414 */
    415415function twentysixteen_widget_tag_cloud_args( $args ) {
    416         $args['largest'] = 1;
     416        $args['largest']  = 1;
    417417        $args['smallest'] = 1;
    418         $args['unit'] = 'em';
     418        $args['unit']     = 'em';
     419        $args['format']   = 'list';
    419420        return $args;
    420421}
    421422add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' );
  • src/wp-content/themes/twentysixteen/style.css

     
    15141514        padding: 0.5625em 0.4375em 0.5em;
    15151515}
    15161516
     1517/* Tag Cloud UL Style Fixes */
     1518
     1519.tagcloud ul {
     1520        list-style-type: none;
     1521}
     1522
     1523.tagcloud ul li {
     1524        display: inline-block;
     1525}
     1526
    15171527.tagcloud a:hover,
    15181528.tagcloud a:focus {
    15191529        border-color: #007acc;
  • src/wp-content/themes/twentyten/functions.php

     
    593593
    594594        return $images;
    595595}
     596
     597/**
     598 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     599 *
     600 * @since Twenty Ten 2.3
     601 *
     602 * @param array $args Arguments for tag cloud widget.
     603 * @return array A new modified arguments.
     604 */
     605function twentyten_widget_tag_cloud_args( $args ) {
     606        $args['largest']  = 22;
     607        $args['smallest'] = 8;
     608        $args['unit']     = 'pt';
     609        $args['format']   = 'list';
     610        return $args;
     611}
     612add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' );
  • src/wp-content/themes/twentyten/style.css

     
    12991299}
    13001300
    13011301
     1302/* Tag Cloud UL Style Fixes */
     1303
     1304.tagcloud ul {
     1305        list-style-type: none;
     1306        margin-left: 0 !important;
     1307}
     1308
     1309.tagcloud ul li {
     1310        display: inline-block;
     1311}
     1312
     1313
    13021314/* =Mobile Safari ( iPad, iPhone and iPod Touch )
    13031315-------------------------------------------------------------- */
    13041316
  • src/wp-content/themes/twentythirteen/functions.php

     
    615615        wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true );
    616616}
    617617add_action( 'customize_preview_init', 'twentythirteen_customize_preview_js' );
     618
     619/**
     620 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     621 *
     622 * @since Twenty Thirteen 2.2
     623 *
     624 * @param array $args Arguments for tag cloud widget.
     625 * @return array A new modified arguments.
     626 */
     627function twentythirteen_widget_tag_cloud_args( $args ) {
     628        $args['largest']  = 22;
     629        $args['smallest'] = 8;
     630        $args['unit']     = 'pt';
     631        $args['format']   = 'list';
     632        return $args;
     633}
     634add_filter( 'widget_tag_cloud_args', 'twentythirteen_widget_tag_cloud_args' );
  • src/wp-content/themes/twentythirteen/style.css

     
    26632663        margin: -10px auto 0;
    26642664}
    26652665
     2666/* Tag Cloud UL Style Fixes */
    26662667
     2668.tagcloud ul {
     2669        list-style-type: none;
     2670}
     2671
     2672.tagcloud ul li {
     2673        display: inline-block;
     2674}
     2675
     2676
    26672677/**
    26682678 * 8.0 Media Queries
    26692679 * ----------------------------------------------------------------------------
  • src/wp-content/themes/twentytwelve/functions.php

     
    559559        wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true );
    560560}
    561561add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' );
     562
     563
     564/**
     565 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility.
     566 *
     567 * @since Twenty Twelve 2.3
     568 *
     569 * @param array $args Arguments for tag cloud widget.
     570 * @return array A new modified arguments.
     571 */
     572function twentytwelve_widget_tag_cloud_args( $args ) {
     573        $args['largest']  = 22;
     574        $args['smallest'] = 8;
     575        $args['unit']     = 'pt';
     576        $args['format']   = 'list';
     577        return $args;
     578}
     579add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' );
  • src/wp-content/themes/twentytwelve/style.css

     
    14601460        margin: 0 auto 1.714285714rem;
    14611461}
    14621462
     1463/* Tag Cloud UL Style Fixes */
    14631464
     1465.tagcloud ul {
     1466        list-style-type: none;
     1467}
     1468
     1469.tagcloud ul li {
     1470        display: inline-block;
     1471}
     1472
    14641473/* =Media queries
    14651474-------------------------------------------------------------- */
    14661475