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-privacy.php

    r6868 r6869  
    2626} );
    2727
    28 add_filter( 'jetpack_open_graph_tags', function( $tags ) {
    29     $tags['og:title']            = _esc_html__( 'WordPress Privacy Policy', 'wporg' );
    30     $tags['og:description']      = _esc_html__( 'Like other major software platforms, WordPress gathers and collects statistics and analytical data. Privacy is key in this endeavor and WordPress never discloses any personally identifiable data. Review the WordPress Privacy Policy to learn how, as a participant in this community, you’re privacy is protected.', 'wporg' );
    31     $tags['twitter:text:title']  = $tags['og:title'];
    32     $tags['twitter:description'] = $tags['og:description'];
    33 
    34     return $tags;
    35 } );
     28// See inc/page-meta-descriptions.php for the meta description for this page.
    3629
    3730get_header( 'child-page' );
Note: See TracChangeset for help on using the changeset viewer.