Making WordPress.org


Ignore:
Timestamp:
11/16/2015 09:04:23 PM (9 years ago)
Author:
stephdau
Message:

login.wordpress.org: Adding phpDocs, translation strings, text-domain, and other common ".org" theme practices.

Props @ramiy, via #1393

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-login/functions.php

    r2081 r2084  
    11<?php
     2/**
     3 * WP.org login' functions and definitions.
     4 *
     5 * @package wporg-login
     6 */
    27
     8
     9
     10/**
     11 * Registers support for various WordPress features.
     12 */
     13function wporg_login_setup() {
     14    load_theme_textdomain( 'wporg-login' );
     15}
     16add_action( 'after_setup_theme', 'wporg_login_setup' );
     17
     18
     19
     20/**
     21 * Extend the default WordPress body classes.
     22 *
     23 * @param array $classes A list of existing body class values.
     24 * @return array The filtered body class list.
     25 */
    326function wporg_login_body_class( $classes ) {
    427//  $classes[] = 'wporg-responsive';
     
    831add_filter( 'body_class', 'wporg_login_body_class' );
    932
     33
     34
     35/**
     36 * Remove the toolbar.
     37 */
    1038function wporg_login_init() {
    11     // We don't need the toolbar on this site.
    1239    show_admin_bar( false );
    1340}
Note: See TracChangeset for help on using the changeset viewer.