Changeset 60536
- Timestamp:
- 08/03/2025 03:25:29 PM (24 hours ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/assets/js/color-calculations.js
r47122 r60536 50 50 item, 51 51 /** 52 * Get a score for this color in contrast to its background color and surrounding text.52 * Gets a score for this color in contrast to its background color and surrounding text. 53 53 * 54 54 * @since Twenty Twenty 1.0 … … 111 111 112 112 /** 113 * Get accessible text-color.113 * Gets accessible text-color. 114 114 * 115 115 * @since Twenty Twenty 1.0 … … 122 122 123 123 /** 124 * Get accessible color for the defined accent-hue and background-color.124 * Gets accessible color for the defined accent-hue and background-color. 125 125 * 126 126 * @since Twenty Twenty 1.0 … … 142 142 143 143 /** 144 * Return a new instance of the _twentyTwentyColor object.144 * Returns a new instance of the _twentyTwentyColor object. 145 145 * 146 146 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/assets/js/customize-preview.js
r52285 r60536 10 10 ( function( $, api, _ ) { 11 11 /** 12 * Return a value for our partial refresh.12 * Returns a value for our partial refresh. 13 13 * 14 14 * @since Twenty Twenty 1.0 … … 32 32 33 33 /** 34 * Override the refresh method.34 * Overrides the refresh method. 35 35 * 36 36 * @since Twenty Twenty 1.0 … … 66 66 67 67 /** 68 * Override the refresh method.68 * Overrides the refresh method. 69 69 * 70 70 * @since Twenty Twenty 1.0 … … 152 152 153 153 /** 154 * Add styles to elements in the preview pane.154 * Adds styles to elements in the preview pane. 155 155 * 156 156 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-customize.php
r60478 r60536 17 17 18 18 /** 19 * Register customizer options.19 * Registers customizer options. 20 20 * 21 21 * @since Twenty Twenty 1.0 … … 27 27 /** 28 28 * Site Title & Description. 29 * */29 */ 30 30 $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; 31 31 $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; … … 440 440 441 441 /** 442 * Sanitize select.442 * Sanitizes a select input. 443 443 * 444 444 * @since Twenty Twenty 1.0 … … 455 455 456 456 /** 457 * Sanitize boolean for checkbox.457 * Sanitizes a boolean for checkbox. 458 458 * 459 459 * @since Twenty Twenty 1.0 … … 477 477 if ( ! function_exists( 'twentytwenty_customize_partial_blogname' ) ) { 478 478 /** 479 * Render the site title for the selective refresh partial.479 * Renders the site title for the selective refresh partial. 480 480 * 481 481 * @since Twenty Twenty 1.0 … … 488 488 if ( ! function_exists( 'twentytwenty_customize_partial_blogdescription' ) ) { 489 489 /** 490 * Render the site description for the selective refresh partial.490 * Renders the site description for the selective refresh partial. 491 491 * 492 492 * @since Twenty Twenty 1.0 … … 499 499 if ( ! function_exists( 'twentytwenty_customize_partial_site_logo' ) ) { 500 500 /** 501 * Render the site logo for the selective refresh partial.501 * Renders the site logo for the selective refresh partial. 502 502 * 503 503 * Doing it this way so we don't have issues with `render_callback`'s arguments. -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-non-latin-languages.php
r56548 r60536 19 19 20 20 /** 21 * Get custom CSS.21 * Gets custom CSS. 22 22 * 23 * Return CSS for non-latin language, if available, or null23 * Returns CSS for non-latin language, if available, or null. 24 24 * 25 25 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-separator-control.php
r56547 r60536 18 18 class TwentyTwenty_Separator_Control extends WP_Customize_Control { 19 19 /** 20 * Render the hr.20 * Renders the hr. 21 21 * 22 22 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/classes/class-twentytwenty-svg-icons.php
r56547 r60536 11 11 /** 12 12 * SVG ICONS CLASS 13 * Retrieve the SVG code for the specified icon. Based on a solution in Twenty Nineteen.13 * Retrieves the SVG code for the specified icon. Based on a solution in Twenty Nineteen. 14 14 * 15 15 * @since Twenty Twenty 1.0 … … 18 18 /** 19 19 * GET SVG CODE 20 * Get the SVG code for the specified icon20 * Gets the SVG code for the specified icon. 21 21 * 22 22 * @since Twenty Twenty 1.0 … … 121 121 /** 122 122 * ICON STORAGE 123 * Store the code for all SVGs in an array.123 * Stores the code for all SVGs in an array. 124 124 * 125 125 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/functions.php
r60407 r60536 177 177 178 178 /** 179 * Register block patterns and pattern categories.179 * Registers block patterns and pattern categories. 180 180 * 181 181 * @since Twenty Twenty 2.8 … … 188 188 189 189 /** 190 * Register and EnqueueStyles.190 * Registers and Enqueues Styles. 191 191 * 192 192 * @since Twenty Twenty 1.0 … … 216 216 217 217 /** 218 * Register and EnqueueScripts.218 * Registers and Enqueues Scripts. 219 219 * 220 220 * @since Twenty Twenty 1.0 … … 241 241 242 242 /** 243 * Fix skip link focus in IE11.243 * Fixes skip link focus in IE11. 244 244 * 245 245 * This does not enqueue the script because it is tiny and because it is only for IE11, … … 261 261 262 262 /** 263 * Enqueue non-latin language styles.263 * Enqueues non-latin language styles. 264 264 * 265 265 * @since Twenty Twenty 1.0 … … 278 278 279 279 /** 280 * Register navigation menus uses wp_nav_menu in five places. 280 * Registers navigation menus. 281 * 282 * This theme uses wp_nav_menu() in five places. 281 283 * 282 284 * @since Twenty Twenty 1.0 … … 298 300 299 301 /** 300 * Get the information about the logo.301 * 302 * @since Twenty Twenty 1.0 303 * 304 * @param string $html The HTML output from get_custom_logo (core function).302 * Gets the information about the logo. 303 * 304 * @since Twenty Twenty 1.0 305 * 306 * @param string $html The HTML output from get_custom_logo() (core function). 305 307 * @return string 306 308 */ … … 357 359 358 360 /** 359 * Shim for wp_body_open , ensuring backward compatibility with versions of WordPress older than 5.2.361 * Shim for wp_body_open(), ensuring backward compatibility with versions of WordPress older than 5.2. 360 362 * 361 363 * @since Twenty Twenty 1.0 … … 386 388 387 389 /** 388 * Register widget areas.390 * Registers widget areas. 389 391 * 390 392 * @since Twenty Twenty 1.0 … … 430 432 431 433 /** 432 * Enqueue supplemental block editor styles.434 * Enqueues supplemental block editor styles. 433 435 * 434 436 * @since Twenty Twenty 1.0 … … 467 469 468 470 /** 469 * Enqueue classic editor styles.471 * Enqueues classic editor styles. 470 472 * 471 473 * @since Twenty Twenty 1.0 … … 541 543 /** 542 544 * Block Editor Settings. 543 * Add custom colors and font sizes to the block editor.545 * Adds custom colors and font sizes to the block editor. 544 546 * 545 547 * @since Twenty Twenty 1.0 … … 666 668 667 669 /** 668 * Enqueue scripts for the customizer preview.670 * Enqueues scripts for the customizer preview. 669 671 * 670 672 * @since Twenty Twenty 1.0 … … 692 694 693 695 /** 694 * Get accessible color for an area.696 * Gets accessible color for an area. 695 697 * 696 698 * @since Twenty Twenty 1.0 … … 750 752 751 753 /** 752 * Get an array of elements.754 * Gets an array of elements. 753 755 * 754 756 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/inc/custom-css.php
r56783 r60536 11 11 12 12 /** 13 * Generate CSS.13 * Generates CSS. 14 14 * 15 15 * @since Twenty Twenty 1.0 … … 49 49 50 50 /** 51 * Get CSS Built from Customizer Options.52 * Build CSS reflecting colors, fonts and other options set in the Customizer, and returnthem for output.51 * Gets CSS Built from Customizer Options. 52 * Builds CSS reflecting colors, fonts and other options set in the Customizer, and returns them for output. 53 53 * 54 54 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/inc/starter-content.php
r56548 r60536 11 11 12 12 /** 13 * Function to returnthe array of starter content for the theme.13 * Returns the array of starter content for the theme. 14 14 * 15 15 * Passes it through the `twentytwenty_starter_content` filter before returning. -
trunk/src/wp-content/themes/twentytwenty/inc/svg-icons.php
r51322 r60536 10 10 if ( ! function_exists( 'twentytwenty_the_theme_svg' ) ) { 11 11 /** 12 * Output and Get Theme SVG. 13 * Output and get the SVG markup for an icon in the TwentyTwenty_SVG_Icons class. 12 * Outputs the SVG markup for an icon in the TwentyTwenty_SVG_Icons class. 14 13 * 15 14 * @since Twenty Twenty 1.0 … … 27 26 28 27 /** 29 * Get information about the SVG icon.28 * Gets information about the SVG icon. 30 29 * 31 30 * @since Twenty Twenty 1.0 -
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r60483 r60536 170 170 * Filters comment reply link to not JS scroll. 171 171 * 172 * Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it172 * Filters the comment reply link to add a class indicating it should not use JS slow-scroll, as it 173 173 * makes it scroll to the wrong position on the page. 174 174 * … … 539 539 * Filters classes of wp_list_pages items to match menu items. 540 540 * 541 * Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify.541 * Filters the class applied to wp_list_pages() items with children to match the menu class, to simplify 542 542 * styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set. 543 543 * -
trunk/src/wp-content/themes/twentytwentyone/inc/starter-content.php
r55431 r60536 11 11 12 12 /** 13 * Function to returnthe array of starter content for the theme.13 * Returns the array of starter content for the theme. 14 14 * 15 15 * Passes it through the `twenty_twenty_one_starter_content` filter before returning.
Note: See TracChangeset
for help on using the changeset viewer.