Make WordPress Core

Ticket #60021: 60021.17.patch

File 60021.17.patch, 7.0 KB (added by shailu25, 2 years ago)

I have Added Global Documentation for Twenty Thirteen theme, Twenty Fourteen theme & Twenty Fifteen theme.

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

    diff --git a/src/wp-content/themes/twentyfifteen/functions.php b/src/wp-content/themes/twentyfifteen/functions.php
    index 0a1b3a2e6d..a8ebce3234 100644
    a b if ( ! function_exists( 'twentyfifteen_setup' ) ) : 
    5050         * as indicating support for post thumbnails.
    5151         *
    5252         * @since Twenty Fifteen 1.0
     53         *
     54         * @global string $wp_version The WordPress version string.
    5355         */
    5456        function twentyfifteen_setup() {
    5557
    add_action( 'enqueue_block_editor_assets', 'twentyfifteen_block_editor_styles' ) 
    498500 * @since Twenty Fifteen 1.7
    499501 * @deprecated Twenty Fifteen 3.4 Disabled filter because, by default, fonts are self-hosted.
    500502 *
     503 * @global string $wp_version The WordPress version string.
     504 *
    501505 * @param array   $urls          URLs to print for resource hints.
    502506 * @param string  $relation_type The relation type the URLs are printed.
    503507 * @return array URLs to print for resource hints.
  • src/wp-content/themes/twentyfifteen/inc/back-compat.php

    diff --git a/src/wp-content/themes/twentyfifteen/inc/back-compat.php b/src/wp-content/themes/twentyfifteen/inc/back-compat.php
    index 6b871f5e0e..29e2674d12 100644
    a b add_action( 'after_switch_theme', 'twentyfifteen_switch_theme' ); 
    3232 * Twenty Fifteen on WordPress versions prior to 4.1.
    3333 *
    3434 * @since Twenty Fifteen 1.0
     35 *
     36 * @global string $wp_version The WordPress version string.
    3537 */
    3638function twentyfifteen_upgrade_notice() {
    3739        printf(
    function twentyfifteen_upgrade_notice() { 
    4850 * Prevent the Customizer from being loaded on WordPress versions prior to 4.1.
    4951 *
    5052 * @since Twenty Fifteen 1.0
     53 *
     54 * @global string $wp_version The WordPress version string.
    5155 */
    5256function twentyfifteen_customize() {
    5357        wp_die(
    add_action( 'load-customize.php', 'twentyfifteen_customize' ); 
    6872 * Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.
    6973 *
    7074 * @since Twenty Fifteen 1.0
     75 *
     76 * @global string $wp_version The WordPress version string.
    7177 */
    7278function twentyfifteen_preview() {
    7379        if ( isset( $_GET['preview'] ) ) {
  • src/wp-content/themes/twentyfourteen/functions.php

    diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php
    index f6db24f3c1..30cf025384 100644
    a b add_action( 'after_setup_theme', 'twentyfourteen_setup' ); 
    226226 * Adjust content_width value for image attachment template.
    227227 *
    228228 * @since Twenty Fourteen 1.0
     229 *
     230 * @global int $content_width Content width.
    229231 */
    230232function twentyfourteen_content_width() {
    231233        if ( is_attachment() && wp_attachment_is_image() ) {
    add_action( 'admin_print_scripts-appearance_page_custom-header', 'twentyfourteen 
    417419 * @since Twenty Fourteen 1.9
    418420 * @deprecated Twenty Fourteen 3.6 Disabled filter because, by default, fonts are self-hosted.
    419421 *
     422 * @global string $wp_version The WordPress version string.
     423 *
    420424 * @param array   $urls          URLs to print for resource hints.
    421425 * @param string  $relation_type The relation type the URLs are printed.
    422426 * @return array URLs to print for resource hints.
    if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 
    524528         * Print a list of all site contributors who published at least one post.
    525529         *
    526530         * @since Twenty Fourteen 1.0
     531         *
     532         * @global string $wp_version The WordPress version string.
    527533         */
    528534        function twentyfourteen_list_authors() {
    529535                $args = array(
  • src/wp-content/themes/twentyfourteen/inc/back-compat.php

    diff --git a/src/wp-content/themes/twentyfourteen/inc/back-compat.php b/src/wp-content/themes/twentyfourteen/inc/back-compat.php
    index a0e0b118d6..36fe3a6601 100644
    a b add_action( 'after_switch_theme', 'twentyfourteen_switch_theme' ); 
    3232 * Twenty Fourteen on WordPress versions prior to 3.6.
    3333 *
    3434 * @since Twenty Fourteen 1.0
     35 *
     36 * @global string $wp_version The WordPress version string.
    3537 */
    3638function twentyfourteen_upgrade_notice() {
    3739        printf(
    function twentyfourteen_upgrade_notice() { 
    4850 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6.
    4951 *
    5052 * @since Twenty Fourteen 1.0
     53 *
     54 * @global string $wp_version The WordPress version string.
    5155 */
    5256function twentyfourteen_customize() {
    5357        wp_die(
    add_action( 'load-customize.php', 'twentyfourteen_customize' ); 
    6872 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
    6973 *
    7074 * @since Twenty Fourteen 1.0
     75 *
     76 * @global string $wp_version The WordPress version string.
    7177 */
    7278function twentyfourteen_preview() {
    7379        if ( isset( $_GET['preview'] ) ) {
  • src/wp-content/themes/twentythirteen/functions.php

    diff --git a/src/wp-content/themes/twentythirteen/functions.php b/src/wp-content/themes/twentythirteen/functions.php
    index 3e0c3a957f..18f067acf4 100644
    a b add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); 
    355355 * Add preconnect for Google Fonts.
    356356 *
    357357 * @since Twenty Thirteen 2.1
     358 *
    358359 * @deprecated Twenty Thirteen 3.8 Disabled filter because, by default, fonts are self-hosted.
    359360 *
     361 * @global string $wp_version WordPress version.
     362 *
    360363 * @param array   $urls          URLs to print for resource hints.
    361364 * @param string  $relation_type The relation type the URLs are printed.
    362365 * @return array URLs to print for resource hints.
    if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : 
    483486         * Display navigation to next/previous set of posts when applicable.
    484487         *
    485488         * @since Twenty Thirteen 1.0
     489         *
     490         * @global WP_Query $wp_query WordPress Query object.
    486491         */
    487492        function twentythirteen_paging_nav() {
    488493                global $wp_query;
  • src/wp-content/themes/twentythirteen/inc/back-compat.php

    diff --git a/src/wp-content/themes/twentythirteen/inc/back-compat.php b/src/wp-content/themes/twentythirteen/inc/back-compat.php
    index 2f30c1c713..c60f843dbf 100644
    a b add_action( 'after_switch_theme', 'twentythirteen_switch_theme' ); 
    3232 * Twenty Thirteen on WordPress versions prior to 3.6.
    3333 *
    3434 * @since Twenty Thirteen 1.0
     35 *
     36 * @global string $wp_version WordPress version.
    3537 */
    3638function twentythirteen_upgrade_notice() {
    3739        printf(
    function twentythirteen_upgrade_notice() { 
    4850 * Prevent the Customizer from being loaded on WordPress versions prior to 3.6.
    4951 *
    5052 * @since Twenty Thirteen 1.0
     53 *
     54 * @global string $wp_version WordPress version.
    5155 */
    5256function twentythirteen_customize() {
    5357        wp_die(
    add_action( 'load-customize.php', 'twentythirteen_customize' ); 
    6872 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4.
    6973 *
    7074 * @since Twenty Thirteen 1.0
     75 *
     76 * @global string $wp_version WordPress version.
    7177 */
    7278function twentythirteen_preview() {
    7379        if ( isset( $_GET['preview'] ) ) {