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

    r6868 r6869  
    2727} );
    2828
    29 add_filter( 'jetpack_open_graph_tags', function( $tags ) {
    30     $tags['og:title']            = _esc_html__( 'WordPress is Secure', 'wporg' );
    31     /* translators: WordPress market share: 29%; */
    32     $tags['og:description']      = sprintf( _esc_html__( 'Why is WordPress recommended as a secure website-building solution? With a passionate open source community and an extensible, easy-to-use platform, WordPress provides flexible and secure options for all levels of users, from beginners to pros. Learn how WordPress guarantees the security of %s of the web.', 'wporg' ), WP_MARKET_SHARE . '%' );
    33     $tags['twitter:text:title']  = $tags['og:title'];
    34     $tags['twitter:description'] = $tags['og:description'];
    35 
    36     return $tags;
    37 } );
     29// See inc/page-meta-descriptions.php for the meta description for this page.
    3830
    3931get_header( 'child-page' );
Note: See TracChangeset for help on using the changeset viewer.