Making WordPress.org


Ignore:
Timestamp:
02/24/2018 01:26:54 AM (7 years ago)
Author:
obenland
Message:

Main: Add Open Graph meta data for about pages

Props ocean90, bridgetwillard, claudiud, danieltj, ericsherred, harryjackson1221, jenblogs4u, tokyobiyori, softservenet, benhuberman.
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

    r6653 r6732  
    1313    return get_template_part( 'page' );
    1414}
     15
     16add_filter( 'jetpack_open_graph_tags', function( $tags ) {
     17    $tags['og:title']            = _esc_html__( 'WordPress is Secure', 'wporg' );
     18    /* translators: WordPress market share: 29%; */
     19    $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 . '%' );
     20    $tags['twitter:text:title']  = $tags['og:title'];
     21    $tags['twitter:description'] = $tags['og:description'];
     22
     23    return $tags;
     24} );
    1525
    1626get_header();
Note: See TracChangeset for help on using the changeset viewer.