Making WordPress.org


Ignore:
Timestamp:
03/13/2018 05:00:54 AM (7 years ago)
Author:
dd32
Message:

Main: About: Centralise the custom opengraph tags content into a singular function rather than spredding the filters through page templates.
This change also makes it possible to provide the page embeds with some content, where as previously it was blank, for example: https://test.wordpress.org/about/license/embed/

See #3046.

File:
1 edited

Legend:

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

    r6868 r6869  
    1919} );
    2020
    21 add_filter( 'jetpack_open_graph_tags', function( $tags ) {
    22     $tags['og:title']            = _esc_html__( 'Democratize Publishing', 'wporg' );
    23     $tags['og:description']      = _esc_html__( 'WordPress is software designed for everyone with emphasis on accessibility, performance, security, and usability.', 'wporg' );
    24     $tags['twitter:text:title']  = $tags['og:title'];
    25     $tags['twitter:description'] = $tags['og:description'];
    26 
    27     return $tags;
    28 } );
     21// See inc/page-meta-descriptions.php for the meta description for this page.
    2922
    3023get_header();
Note: See TracChangeset for help on using the changeset viewer.