Changeset 11451 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php
- Timestamp:
- 01/17/2022 06:48:02 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/page-meta-descriptions.php
r11427 r11451 18 18 */ 19 19 function custom_open_graph_tags( $tags = [] ) { 20 global $wporg_global_header_options;21 22 20 // Use `name=""` for description. 23 21 // See Jetpacks Twitter Card for where it happens for the twitter:* fields. … … 28 26 // Override the Front-page tags. 29 27 if ( is_front_page() ) { 30 $site_title = ! empty( $wporg_global_header_options['rosetta_title'] ) ? $wporg_global_header_options['rosetta_title'] : 'WordPress';31 28 return array( 32 29 'og:type' => 'website', … … 35 32 'description' => __( 'Open source software which you can use to easily create a beautiful website, blog, or app.', 'wporg' ), 36 33 'og:url' => home_url( '/' ), 37 'og:site_name' => $site_title,34 'og:site_name' => 'WordPress.org', // Rosetta title will automatically be inserted. 38 35 'og:image' => 'https://s.w.org/images/home/screen-themes.png?3', 39 36 'og:locale' => get_locale(),
Note: See TracChangeset
for help on using the changeset viewer.