WordPress.org

Making WordPress.org

Changeset 7423


Ignore:
Timestamp:
07/11/2018 03:56:00 PM (2 years ago)
Author:
obenland
Message:

Main: Remove back-compat code

No longer needed after launch of Get pages.

See #3673.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/page-download-releases.php

    r7421 r7423  
    1010namespace WordPressdotorg\MainTheme;
    1111
    12 if ( get_post()->post_parent ) {
    13     $GLOBALS['menu_items'] = [
    14         'download/releases'     => _x( 'Releases', 'Page title', 'wporg' ),
    15         'download/beta-nightly' => _x( 'Beta/Nightly', 'Page title', 'wporg' ),
    16         'download/counter'      => _x( 'Counter', 'Page title', 'wporg' ),
    17         'download/source'       => _x( 'Source Code', 'Page title', 'wporg' ),
    18     ];
    19 }
     12$GLOBALS['menu_items'] = [
     13    'download/releases'     => _x( 'Releases', 'Page title', 'wporg' ),
     14    'download/beta-nightly' => _x( 'Beta/Nightly', 'Page title', 'wporg' ),
     15    'download/counter'      => _x( 'Counter', 'Page title', 'wporg' ),
     16    'download/source'       => _x( 'Source Code', 'Page title', 'wporg' ),
     17];
    2018
    2119// Prevent Jetpack from looking for a non-existent featured image.
    2220add_filter( 'jetpack_images_pre_get_images', function() {
    2321    return new \WP_Error();
    24 } );
    25 
    26 add_filter( 'body_class', function( $classes ) {
    27     $classes[] = 'page-child';
    28     return $classes;
    2922} );
    3023
Note: See TracChangeset for help on using the changeset viewer.