Changeset 60519
- Timestamp:
- 07/28/2025 07:16:52 PM (7 months ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 8 edited
-
functions.php (modified) (15 diffs)
-
inc/back-compat.php (modified) (4 diffs)
-
inc/custom-header.php (modified) (6 diffs)
-
inc/customizer.php (modified) (6 diffs)
-
inc/featured-content.php (modified) (16 diffs)
-
inc/template-tags.php (modified) (7 diffs)
-
inc/widgets.php (modified) (4 diffs)
-
js/functions.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r60453 r60519 3 3 * Twenty Fourteen functions and definitions 4 4 * 5 * Set up the theme and provides some helper functions, which are used in the5 * Sets up the theme and provides some helper functions, which are used in the 6 6 * theme as custom template tags. Others are attached to action and filter 7 7 * hooks in WordPress to change core functionality. … … 224 224 225 225 /** 226 * Adjust content_width value for image attachment template.226 * Adjusts content_width value for image attachment template. 227 227 * 228 228 * @since Twenty Fourteen 1.0 … … 265 265 266 266 /** 267 * Register three Twenty Fourteen widget areas.267 * Registers three Twenty Fourteen widget areas. 268 268 * 269 269 * @since Twenty Fourteen 1.0 … … 311 311 if ( ! function_exists( 'twentyfourteen_font_url' ) ) : 312 312 /** 313 * Register Lato font for Twenty Fourteen.313 * Registers Lato font for Twenty Fourteen. 314 314 * 315 315 * @since Twenty Fourteen 1.0 … … 333 333 334 334 /** 335 * Enqueue scripts and styles for the front end.335 * Enqueues scripts and styles for the front end. 336 336 * 337 337 * @since Twenty Fourteen 1.0 … … 402 402 403 403 /** 404 * Enqueue font stylesheet to admin screen for custom header display.404 * Enqueues font stylesheet to admin screen for custom header display. 405 405 * 406 406 * @since Twenty Fourteen 1.0 … … 413 413 414 414 /** 415 * Add preconnect for Google Fonts.415 * Adds preconnect for Google Fonts. 416 416 * 417 417 * @since Twenty Fourteen 1.9 … … 439 439 440 440 /** 441 * Enqueue styles for the block-based editor.441 * Enqueues styles for the block-based editor. 442 442 * 443 443 * @since Twenty Fourteen 2.3 … … 454 454 if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) : 455 455 /** 456 * Print the attached image with a link to the next attached image.456 * Prints the attached image with a link to the next attached image. 457 457 * 458 458 * @since Twenty Fourteen 1.0 … … 522 522 if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 523 523 /** 524 * Print a list of all site contributors who published at least one post.524 * Prints a list of all site contributors who published at least one post. 525 525 * 526 526 * @since Twenty Fourteen 1.0 … … 584 584 585 585 /** 586 * Extend the default WordPress body classes.586 * Extends the default WordPress body classes. 587 587 * 588 588 * Adds body classes to denote: … … 641 641 642 642 /** 643 * Extend the default WordPress post classes.643 * Extends the default WordPress post classes. 644 644 * 645 645 * Adds a post class to denote: … … 661 661 662 662 /** 663 * Create a nicely formatted and more specific title element text for output663 * Creates a nicely formatted and more specific title element text for output 664 664 * in head of document, based on current view. 665 665 * … … 730 730 731 731 /** 732 * Register block patterns and pattern categories.732 * Registers block patterns and pattern categories. 733 733 * 734 734 * @since Twenty Fourteen 4.1 … … 751 751 752 752 /** 753 * Add an `is_customize_preview` function if it is missing.753 * Adds an `is_customize_preview` function if it is missing. 754 754 * 755 755 * Enables installing Twenty Fourteen in WordPress versions before 4.0.0 when the -
trunk/src/wp-content/themes/twentyfourteen/inc/back-compat.php
r51155 r60519 13 13 14 14 /** 15 * Prevent switching to Twenty Fourteen on old versions of WordPress.15 * Prevents switching to Twenty Fourteen on old versions of WordPress. 16 16 * 17 17 * Switches to the default theme. … … 27 27 28 28 /** 29 * Add message for unsuccessful theme switch.29 * Adds message for unsuccessful theme switch. 30 30 * 31 31 * Prints an update nag after an unsuccessful attempt to switch to … … 46 46 47 47 /** 48 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6.48 * Prevents the Customizer from being loaded on WordPress versions prior to 3.6. 49 49 * 50 50 * @since Twenty Fourteen 1.0 … … 66 66 67 67 /** 68 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.68 * Prevents the Theme Preview from being loaded on WordPress versions prior to 3.4. 69 69 * 70 70 * @since Twenty Fourteen 1.0 -
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r59832 r60519 1 1 <?php 2 2 /** 3 * Implement Custom Header functionality for Twenty Fourteen3 * Implements Custom Header functionality for Twenty Fourteen 4 4 * 5 5 * @package WordPress … … 9 9 10 10 /** 11 * Set up the WordPress core custom header settings.11 * Sets up the WordPress core custom header settings. 12 12 * 13 13 * @since Twenty Fourteen 1.0 … … 56 56 if ( ! function_exists( 'twentyfourteen_header_style' ) ) : 57 57 /** 58 * Styles the header image and text displayed on the blog 58 * Styles the header image and text displayed on the blog. 59 59 * 60 60 * @see twentyfourteen_custom_header_setup(). … … 96 96 if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) : 97 97 /** 98 * Style the header image displayed on the Appearance > Header screen.98 * Styles the header image displayed on the Appearance > Header screen. 99 99 * 100 100 * @see twentyfourteen_custom_header_setup() … … 134 134 if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) : 135 135 /** 136 * Create the custom header image markup displayed on the Appearance > Header screen.136 * Creates the custom header image markup displayed on the Appearance > Header screen. 137 137 * 138 138 * @see twentyfourteen_custom_header_setup() … … 155 155 if ( ! function_exists( 'twentyfourteen_header_image' ) ) : 156 156 /** 157 * Create the custom header image markup displayed.157 * Creates the custom header image markup displayed. 158 158 * 159 159 * @see twentyfourteen_custom_header_setup() -
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r60159 r60519 9 9 10 10 /** 11 * Implement Customizer additions and adjustments.11 * Implements Customizer additions and adjustments. 12 12 * 13 13 * @since Twenty Fourteen 1.0 … … 96 96 97 97 /** 98 * Render the site title for the selective refresh partial.98 * Renders the site title for the selective refresh partial. 99 99 * 100 100 * @since Twenty Fourteen 1.7 … … 109 109 110 110 /** 111 * Render the site tagline for the selective refresh partial.111 * Renders the site tagline for the selective refresh partial. 112 112 * 113 113 * @since Twenty Fourteen 1.7 … … 122 122 123 123 /** 124 * Sanitize the Featured Content layout value.124 * Sanitizes the Featured Content layout value. 125 125 * 126 126 * @since Twenty Fourteen 1.0 … … 138 138 139 139 /** 140 * Bind JS handlers to make Customizer preview reload changes asynchronously.140 * Binds JS handlers to make Customizer preview reload changes asynchronously. 141 141 * 142 142 * @since Twenty Fourteen 1.0 … … 148 148 149 149 /** 150 * Add contextual help to the Themes and Post edit screens.150 * Adds contextual help to the Themes and Post edit screens. 151 151 * 152 152 * @since Twenty Fourteen 1.0 -
trunk/src/wp-content/themes/twentyfourteen/inc/featured-content.php
r59210 r60519 29 29 30 30 /** 31 * Instantiate .31 * Instantiates. 32 32 * 33 33 * All custom functionality will be hooked into the "init" action. … … 40 40 41 41 /** 42 * Conditionally hook into WordPress.42 * Conditionally hooks into WordPress. 43 43 * 44 44 * Theme must declare that they support this module by adding … … 90 90 91 91 /** 92 * Hide "featured" tag from the front end.92 * Hides "featured" tag from the front end. 93 93 * 94 94 * Has to run on wp_loaded so that the preview filters of the Customizer … … 105 105 106 106 /** 107 * Get featured posts.107 * Gets featured posts. 108 108 * 109 109 * @since Twenty Fourteen 1.0 … … 130 130 131 131 /** 132 * Get featured post IDs132 * Gets featured post IDs. 133 133 * 134 134 * This function will return the an array containing the … … 180 180 181 181 /** 182 * Return an array with IDs of posts marked as sticky.182 * Returns an array with IDs of posts marked as sticky. 183 183 * 184 184 * @since Twenty Fourteen 1.0 … … 191 191 192 192 /** 193 * Delete featured content IDs transient.193 * Deletes featured content IDs transient. 194 194 * 195 195 * Hooks in the "save_post" action. … … 204 204 205 205 /** 206 * Exclude featured posts from the home page blog query.207 * 208 * Filter the home page posts, and removeany featured post ID's from it.206 * Excludes featured posts from the home page blog query. 207 * 208 * Filters the home page posts, and removes any featured post ID's from it. 209 209 * Hooked onto the 'pre_get_posts' action, this changes the parameters of 210 210 * the query before it gets any posts. … … 246 246 247 247 /** 248 * Reset tag option when the saved tag is deleted.248 * Resets tag option when the saved tag is deleted. 249 249 * 250 250 * It's important to mention that the transient needs to be deleted, … … 273 273 274 274 /** 275 * Hide featured tag from displaying when global terms are queried from the front end.275 * Hides featured tag from displaying when global terms are queried from the front end. 276 276 * 277 277 * Hooks into the "get_terms" filter. … … 319 319 320 320 /** 321 * Hide featured tag from display when terms associated with a post object321 * Hides featured tag from display when terms associated with a post object 322 322 * are queried from the front end. 323 323 * … … 361 361 362 362 /** 363 * Register custom setting on the Settings -> Reading screen.363 * Registers custom setting on the Settings -> Reading screen. 364 364 * 365 365 * @since Twenty Fourteen 1.0 … … 370 370 371 371 /** 372 * Add settings to the Customizer.372 * Adds settings to the Customizer. 373 373 * 374 374 * @since Twenty Fourteen 1.0 … … 431 431 432 432 /** 433 * Enqueue the tag suggestion script.433 * Enqueues the tag suggestion script. 434 434 * 435 435 * @since Twenty Fourteen 1.0 … … 440 440 441 441 /** 442 * Get featured content settings.443 * 444 * Get all settings recognized by this module. This function442 * Gets featured content settings. 443 * 444 * Gets all settings recognized by this module. This function 445 445 * will return all settings whether or not they have been stored 446 446 * in the database yet. This ensures that all keys are available … … 476 476 477 477 /** 478 * Validate featured content settings.479 * 480 * Make sure that all user supplied content is in an expected478 * Validates featured content settings. 479 * 480 * Makes sure that all user supplied content is in an expected 481 481 * format before saving to the database. This function will also 482 482 * delete the transient set in Featured_Content::get_featured_content(). -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r59851 r60519 10 10 if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) : 11 11 /** 12 * Display navigation to next/previous set of posts when applicable.12 * Displays navigation to next/previous set of posts when applicable. 13 13 * 14 14 * @since Twenty Fourteen 1.0 … … 75 75 if ( ! function_exists( 'twentyfourteen_post_nav' ) ) : 76 76 /** 77 * Display navigation to next/previous post when applicable.77 * Displays navigation to next/previous post when applicable. 78 78 * 79 79 * @since Twenty Fourteen 1.0 … … 113 113 if ( ! function_exists( 'twentyfourteen_posted_on' ) ) : 114 114 /** 115 * Print HTML with meta information for the current post-date/time and author.115 * Prints HTML with meta information for the current post-date/time and author. 116 116 * 117 117 * @since Twenty Fourteen 1.0 … … 135 135 136 136 /** 137 * Find out if blog has more than one category.137 * Finds out if blog has more than one category. 138 138 * 139 139 * @since Twenty Fourteen 1.0 … … 167 167 168 168 /** 169 * Flush out the transients used in twentyfourteen_categorized_blog.169 * Flushes out the transients used in twentyfourteen_categorized_blog. 170 170 * 171 171 * @since Twenty Fourteen 1.0 … … 180 180 if ( ! function_exists( 'twentyfourteen_post_thumbnail' ) ) : 181 181 /** 182 * Display an optional post thumbnail.182 * Displays an optional post thumbnail. 183 183 * 184 184 * Wraps the post thumbnail in an anchor element on index … … 247 247 if ( ! function_exists( 'wp_body_open' ) ) : 248 248 /** 249 * Fire the wp_body_open action.249 * Fires the wp_body_open action. 250 250 * 251 251 * Added for backward compatibility to support pre-5.2.0 WordPress versions. -
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r59158 r60519 46 46 47 47 /** 48 * Enqueue scripts.48 * Enqueues scripts. 49 49 * 50 50 * @since Twenty Fourteen 1.7 … … 63 63 64 64 /** 65 * Output the HTML for this widget.65 * Outputs the HTML for this widget. 66 66 * 67 67 * @since Twenty Fourteen 1.0 … … 257 257 258 258 /** 259 * Deal with the settings when they are saved by the admin.259 * Deals with the settings when they are saved by the admin. 260 260 * 261 261 * Here is where any validation should happen. … … 281 281 282 282 /** 283 * Display the form for this widget on the Widgets page of the Admin area.283 * Displays the form for this widget on the Widgets page of the Admin area. 284 284 * 285 285 * @since Twenty Fourteen 1.0 -
trunk/src/wp-content/themes/twentyfourteen/js/functions.js
r55861 r60519 96 96 97 97 /** 98 * Add or removeARIA attributes.98 * Adds or removes ARIA attributes. 99 99 * 100 100 * Uses jQuery's width() function to determine the size of the window and add
Note: See TracChangeset
for help on using the changeset viewer.