Making WordPress.org

Changeset 6732


Ignore:
Timestamp:
02/24/2018 01:26:54 AM (6 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.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-domains.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 Domains', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'WordPress domains and site names can be very flexible; however, top-level domains can’t use the word WordPress. Find out what is allowed and what constitutes a trademark violation, as well as policies on subdomain use. Review the list of official WordPress sites to know how to recognize and advise violators.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-etiquette.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__( 'Etiquette at WordPress', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'We welcome the contributions of everyone who’s interested in joining the WordPress open source project, and every thriving, diverse community needs etiquette guidelines. Review our simple guidelines that focus on diversity, safety, and inclusion and foster a welcoming community for our contributors around the world.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-features.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 Features', 'wporg' );
     18    /* translators: WordPress market share: 29%; */
     19    $tags['og:description']      = sprintf( _esc_html__( 'Discover why WordPress powers more than %s of the web. WordPress is a simple, flexible, user-friendly platform, with key features that include media management, SEO, and endless options for customization. More than 50,000 plugins extend the core functionality of WordPress even more. Build your site today.', '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();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-history.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__( 'The History of WordPress', 'wporg' );
     18    /* translators: WordPress market share: 29%; */
     19    $tags['og:description']      = sprintf( _esc_html__( 'WordPress currently powers more than %s of the web. How did it grow to become the world’s leading web publishing platform? Learn about the history of WordPress: an open source software project built by an active community of contributors who are passionate about collaboration, empowerment, and the open 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();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-license.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__( 'The GNU Public License', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'WordPress is an open source software project, and a fierce believer in the values of the open web. WordPress uses the GNU Public License, which provides a platform for technical expansion and encourages adaptation and innovation. Learn more about this license, and discover what can and cannot be done under it.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-philosophy.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’ Philosophy', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'At the core of the WordPress philosophy is our commitment to the open web and to building software that works for everyone, from a new user to an advanced developer. Our philosophy pushes WordPress to remain flexible, adaptable, and easy-to-use. Learn about WordPress’s philosophy and how it shapes our community.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-privacy.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 Privacy Policy', 'wporg' );
     18    $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' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-requirements.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__( 'Hosting Requirements for WordPress', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'Running WordPress doesn’t require a lot, but your host will still need to meet a few minimum requirements. Learn about the website hosting requirements to run WordPress, including our recommendation to support PHP 7.2+ and HTTPS. Not sure how to ask your host for these details? Use the sample email we include.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-roadmap.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 Development Roadmap', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'The WordPress Roadmap lists major releases by date, includes details about the features of each release, and acknowledges the contributing community members. Learn about the status of upcoming releases, development cycles, issues, and milestones. Follow the progress of WordPress development week after week!', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • 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();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-stats.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__( 'Key WordPress Statistics', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'WordPress is committed to transparency, and you can get a better sense of its constant worldwide growth through the statistics we share. Review key WordPress stats including usage breakdown by WordPress versions, PHP and MySQL versions being run, and locales of use, and see how WordPress expands its global reach.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about-swag.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 Swag', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'Show your WordPress pride and run with the coolest swag! You’ll be surprised how widely recognized our logo is around the world, bringing people together through recognition and community. Choose your WordPress swag today (Wapuu t-shirt, anyone?) and your purchase will also support free swag at WordCamps and meetups.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-about.php

    r6731 r6732  
    1313    return get_template_part( 'page' );
    1414}
     15
     16add_filter( 'jetpack_open_graph_tags', function( $tags ) {
     17    $tags['og:title']            = _esc_html__( 'Democratize Publishing', 'wporg' );
     18    $tags['og:description']      = _esc_html__( 'WordPress is software designed for everyone with emphasis on accessibility, performance, security, and usability.', 'wporg' );
     19    $tags['twitter:text:title']  = $tags['og:title'];
     20    $tags['twitter:description'] = $tags['og:description'];
     21
     22    return $tags;
     23} );
    1524
    1625get_header();
Note: See TracChangeset for help on using the changeset viewer.