Making WordPress.org

Changeset 4169


Ignore:
Timestamp:
09/29/2016 06:37:37 PM (8 years ago)
Author:
iandunn
Message:

WordCamp Fonts: Trim trailing whitespace

See #1902
Props claudiosanches

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php

    r2091 r4169  
    1313        add_action( 'admin_init', array( $this, 'admin_init' ) );
    1414        add_action( 'admin_menu', array( $this, 'admin_menu' ) );
    15        
     15
    1616        add_action( 'wp_head', array( $this, 'wp_head_typekit' ), 102 ); // after safecss_style
    1717        add_action( 'wp_head', array( $this, 'wp_head_google_web_fonts' ) );
     
    2626        $this->options = (array) get_option( 'wc-fonts-options', array() );
    2727    }
    28    
     28
    2929    /**
    3030     * Provides the <head> output for Typekit settings.
     
    3333        if ( ! isset( $this->options['typekit-id'] ) || empty( $this->options['typekit-id'] ) )
    3434            return;
    35            
     35
    3636        printf( '<script type="text/javascript" src="https://use.typekit.com/%s.js"></script>' . "\n", $this->options['typekit-id'] );
    3737        printf( '<script type="text/javascript">try{Typekit.load();}catch(e){}</script>' );
     
    9494        $fonts = add_theme_page( 'Fonts', 'Fonts', 'edit_theme_options', 'wc-fonts-options', array( $this, 'render_admin_page' ) );
    9595    }
    96    
     96
    9797    /**
    9898     * Uses the Settings API to render the Appearance > Fonts page
Note: See TracChangeset for help on using the changeset viewer.