Making WordPress.org


Ignore:
Timestamp:
03/13/2018 05:00:54 AM (8 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-requirements.php

    r6868 r6869  
    2727} );
    2828
    29 add_filter( 'jetpack_open_graph_tags', function( $tags ) {
    30     $tags['og:title']            = _esc_html__( 'Hosting Requirements for WordPress', 'wporg' );
    31     $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' );
    32     $tags['twitter:text:title']  = $tags['og:title'];
    33     $tags['twitter:description'] = $tags['og:description'];
    34 
    35     return $tags;
    36 } );
     29// See inc/page-meta-descriptions.php for the meta description for this page.
    3730
    3831get_header( 'child-page' );
Note: See TracChangeset for help on using the changeset viewer.