Ticket #40138: 40138.3.patch
File 40138.3.patch, 14.2 KB (added by , 7 years ago) |
---|
-
src/wp-content/themes/twentyeleven/functions.php
743 743 744 744 return $images; 745 745 } 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.7 751 * 752 * @param array $args Arguments for tag cloud widget. 753 * @return array A new modified arguments. 754 */ 755 function 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 } 762 add_filter( 'widget_tag_cloud_args', 'twentyeleven_widget_tag_cloud_args' ); -
src/wp-content/themes/twentyeleven/style.css
1922 1922 } 1923 1923 1924 1924 /* Calendar Widget */ 1925 1926 1925 .widget_calendar #wp-calendar { 1927 1926 color: #555; 1928 1927 width: 95%; … … 1952 1951 } 1953 1952 1954 1953 /* Text Widget */ 1955 1956 1954 .widget_text ul, 1957 1955 .widget_text ol { 1958 1956 margin: 0 0 1.625em 2.5em; … … 1964 1962 margin-bottom: 0; 1965 1963 } 1966 1964 1965 /* Tag Cloud Widget */ 1966 .tagcloud ul { 1967 list-style-type: none; 1968 } 1969 1970 .tagcloud ul li { 1971 display: inline-block; 1972 } 1973 1967 1974 /* =Comments 1968 1975 ----------------------------------------------- */ 1969 1976 … … 2332 2339 font-weight: bold; 2333 2340 } 2334 2341 2335 2336 2342 /* =Responsive Structure 2337 2343 ----------------------------------------------- */ 2338 2344 -
src/wp-content/themes/twentyfifteen/functions.php
386 386 add_filter( 'get_search_form', 'twentyfifteen_search_form_modify' ); 387 387 388 388 /** 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.9 392 * 393 * @param array $args Arguments for tag cloud widget. 394 * @return array A new modified arguments. 395 */ 396 function 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 } 403 add_filter( 'widget_tag_cloud_args', 'twentyfifteen_widget_tag_cloud_args' ); 404 405 406 /** 389 407 * Implement the Custom Header feature. 390 408 * 391 409 * @since Twenty Fifteen 1.0 -
src/wp-content/themes/twentyfifteen/inc/template-tags.php
97 97 } 98 98 99 99 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfifteen' ) ); 100 if ( $tags_list ) {100 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 101 101 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 102 102 _x( 'Tags', 'Used before tag names.', 'twentyfifteen' ), 103 103 $tags_list -
src/wp-content/themes/twentyfifteen/style.css
1559 1559 margin-left: 1.6em; 1560 1560 } 1561 1561 1562 .tagcloud ul { 1563 list-style-type: none; 1564 } 1565 1566 .tagcloud ul li { 1567 display: inline-block; 1568 } 1562 1569 1563 1570 /** 1564 1571 * 12.0 Content -
src/wp-content/themes/twentyfourteen/functions.php
527 527 } 528 528 add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 ); 529 529 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.1 535 * 536 * @param array $args Arguments for tag cloud widget. 537 * @return array A new modified arguments. 538 */ 539 function 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 } 546 add_filter( 'widget_tag_cloud_args', 'twentyfourteen_widget_tag_cloud_args' ); 547 548 530 549 // Implement Custom Header features. 531 550 require get_template_directory() . '/inc/custom-header.php'; 532 551 -
src/wp-content/themes/twentyfourteen/style.css
2583 2583 padding-bottom: 0; 2584 2584 } 2585 2585 2586 .tagcloud ul { 2587 list-style-type: none; 2588 } 2589 2590 .tagcloud ul li { 2591 display: inline-block; 2592 } 2593 2586 2594 /* Recent Posts Widget */ 2587 2595 2588 2596 .widget_recent_entries .post-date { -
src/wp-content/themes/twentyseventeen/inc/template-tags.php
84 84 echo '<span class="cat-links">' . twentyseventeen_get_svg( array( 'icon' => 'folder-open' ) ) . '<span class="screen-reader-text">' . __( 'Categories', 'twentyseventeen' ) . '</span>' . $categories_list . '</span>'; 85 85 } 86 86 87 if ( $tags_list ) {87 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 88 88 echo '<span class="tags-links">' . twentyseventeen_get_svg( array( 'icon' => 'hashtag' ) ) . '<span class="screen-reader-text">' . __( 'Tags', 'twentyseventeen' ) . '</span>' . $tags_list . '</span>'; 89 89 } 90 90 -
src/wp-content/themes/twentysixteen/functions.php
417 417 /** 418 418 * Modifies tag cloud widget arguments to have all tags in the widget same font size. 419 419 * 420 * @since Twenty Sixteen 1. 1420 * @since Twenty Sixteen 1.4 421 421 * 422 422 * @param array $args Arguments for tag cloud widget. 423 423 * @return array A new modified arguments. 424 424 */ 425 425 function twentysixteen_widget_tag_cloud_args( $args ) { 426 $args['largest'] = 1;426 $args['largest'] = 1; 427 427 $args['smallest'] = 1; 428 $args['unit'] = 'em'; 428 $args['unit'] = 'em'; 429 $args['format'] = 'list'; 429 430 return $args; 430 431 } 431 432 add_filter( 'widget_tag_cloud_args', 'twentysixteen_widget_tag_cloud_args' ); -
src/wp-content/themes/twentysixteen/inc/template-tags.php
101 101 } 102 102 103 103 $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'twentysixteen' ) ); 104 if ( $tags_list ) {104 if ( $tags_list && ! is_wp_error( $tags_list ) ) { 105 105 printf( '<span class="tags-links"><span class="screen-reader-text">%1$s </span>%2$s</span>', 106 106 _x( 'Tags', 'Used before tag names.', 'twentysixteen' ), 107 107 $tags_list -
src/wp-content/themes/twentysixteen/rtl.css
315 315 margin-left: 0.1875em; 316 316 } 317 317 318 .tagcloud ul { 319 margin-right: 0; 320 } 321 318 322 319 323 /** 320 324 * 8.0 - Content -
src/wp-content/themes/twentysixteen/style.css
1514 1514 padding: 0.5625em 0.4375em 0.5em; 1515 1515 } 1516 1516 1517 .tagcloud ul { 1518 list-style-type: none; 1519 margin-left: 0; 1520 } 1521 1522 .tagcloud ul li { 1523 display: inline-block; 1524 } 1525 1517 1526 .tagcloud a:hover, 1518 1527 .tagcloud a:focus { 1519 1528 border-color: #007acc; -
src/wp-content/themes/twentyten/functions.php
536 536 function twentyten_posted_in() { 537 537 // Retrieves tag list of current post, separated by commas. 538 538 $tag_list = get_the_tag_list( '', ', ' ); 539 if ( $tag_list ) {539 if ( $tag_list && ! is_wp_error( $tag_list ) ) { 540 540 $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); 541 541 } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { 542 542 $posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' ); … … 593 593 594 594 return $images; 595 595 } 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.4 601 * 602 * @param array $args Arguments for tag cloud widget. 603 * @return array A new modified arguments. 604 */ 605 function 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 } 612 add_filter( 'widget_tag_cloud_args', 'twentyten_widget_tag_cloud_args' ); -
src/wp-content/themes/twentyten/rtl.css
270 270 margin-right: 1.3em; 271 271 } 272 272 273 #main .widget-area .tagcloud ul, 274 .widget-area .tagcloud ul { 275 margin-right: 0; 276 } 277 273 278 /* =Footer 274 279 -------------------------------------------------------------- */ 275 280 #site-generator { -
src/wp-content/themes/twentyten/style.css
1238 1238 .widget_media_video video { 1239 1239 max-width: 100%; 1240 1240 } 1241 .tagcloud ul { 1242 list-style-type: none; 1243 margin-left: 0 !important; 1244 } 1245 .tagcloud ul li { 1246 display: inline-block; 1247 } 1241 1248 1242 1249 /* Main sidebars */ 1243 1250 #main .widget-area ul { -
src/wp-content/themes/twentythirteen/functions.php
615 615 wp_enqueue_script( 'twentythirteen-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); 616 616 } 617 617 add_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.3 623 * 624 * @param array $args Arguments for tag cloud widget. 625 * @return array A new modified arguments. 626 */ 627 function 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 } 634 add_filter( 'widget_tag_cloud_args', 'twentythirteen_widget_tag_cloud_args' ); -
src/wp-content/themes/twentythirteen/style.css
2562 2562 } 2563 2563 2564 2564 /* Text widget */ 2565 2566 2565 .widget_text ul, 2567 2566 .widget_text ol { 2568 2567 padding-left: 20px; … … 2586 2585 list-style: decimal; 2587 2586 } 2588 2587 2588 /* Tag Cloud widget */ 2589 .tagcloud ul { 2590 list-style-type: none; 2591 } 2592 2593 .tagcloud ul li { 2594 display: inline-block; 2595 padding: 0; 2596 } 2597 2589 2598 /** 2590 2599 * 7.0 Footer 2591 2600 * ---------------------------------------------------------------------------- -
src/wp-content/themes/twentytwelve/functions.php
559 559 wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); 560 560 } 561 561 add_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.4 568 * 569 * @param array $args Arguments for tag cloud widget. 570 * @return array A new modified arguments. 571 */ 572 function 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 } 579 add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' ); -
src/wp-content/themes/twentytwelve/style.css
1450 1450 display: block; 1451 1451 text-align: right; 1452 1452 } 1453 .tagcloud ul { 1454 list-style-type: none; 1455 } 1456 1457 .tagcloud ul li { 1458 display: inline-block; 1459 } 1460 1461 .widget-area .widget.widget_tag_cloud li { 1462 line-height: 1; 1463 } 1464 .template-front-page .widget-area .widget.widget_tag_cloud li { 1465 margin: 0; 1466 } 1453 1467 1454 1468 /* =Plugins 1455 1469 ----------------------------------------------- */ … … 1460 1474 margin: 0 auto 1.714285714rem; 1461 1475 } 1462 1476 1463 1464 1477 /* =Media queries 1465 1478 -------------------------------------------------------------- */ 1466 1479