WordPress.org

Making WordPress.org

Changeset 9388


Ignore:
Timestamp:
01/05/2020 01:40:23 PM (2 years ago)
Author:
ocean90
Message:

Main theme: Enable support for featured images.

Featured images are currently not used in the theme but this enables to use them via open graph tags when a page is shared.

Fixes #4596.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/functions.php

    r9382 r9388  
    3232        'rosetta_main' => esc_html__( 'Rosetta', 'wporg' ),
    3333    ) );
     34
     35    /*
     36     * Featured images are currently not used in the theme but this enables
     37     * to use them via open graph tags when a page is shared.
     38     */
     39    add_theme_support( 'post-thumbnails' );
    3440}
    3541add_action( 'after_setup_theme', __NAMESPACE__ . '\setup' );
Note: See TracChangeset for help on using the changeset viewer.