Making WordPress.org

Ticket #1353: 1353-mobileapps_2.diff

File 1353-mobileapps_2.diff, 1.4 KB (added by BandonRandon, 8 years ago)

forgot document_title_separator filter :)

  • themes/pub/wporg-apps/functions.php

     
    5656                'comment-form',
    5757                'gallery',
    5858        ) );
     59
     60                add_theme_support('title-tag');
    5961}
    6062endif; // wpmobileapps_setup
    6163add_action( 'after_setup_theme', 'wpmobileapps_setup' );
     
    197199                return;
    198200        }
    199201
     202        /**
     203         * Returns the title seprator.
     204         */
     205        function wpmobileapps_title_separator(){
     206                return '|';
     207        }
     208        add_filter('document_title_separator','wpmobileapps_title_separator');
     209
     210
    200211        if ( class_exists( 'Jetpack_Likes' ) ) {
    201212                remove_filter( 'post_flair', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 );
    202213        }
     
    276287                update_post_meta( $post_id, 'features_animation', $_POST['features_animation'] );
    277288}
    278289add_action( 'save_post', 'save_wpma_meta_information', 1, 2 );
    279 
  • themes/pub/wporg-apps/header.php

     
    1111<head>
    1212<meta charset="<?php bloginfo( 'charset' ); ?>">
    1313<meta name="viewport" content="width=device-width, initial-scale=1">
    14 <title><?php wp_title( '|', true, 'right' ); ?></title>
    1514<link rel="profile" href="http://gmpg.org/xfn/11">
    1615<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    1716