Making WordPress.org

Ticket #1885: 1885.2.diff

File 1885.2.diff, 2.0 KB (added by jeffSLOfish, 7 years ago)

patch file

  • wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php

    diff --git a/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php b/wordcamp.org/public_html/wp-content/plugins/wc-fonts/wc-fonts.php
    index a7df9ce..58aca1d 100644
    a b class WordCamp_Fonts_Plugin { 
    1212                add_action( 'init', array( $this, 'init' ) );
    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' ) );
    1818                add_action( 'wp_head', array( $this, 'wp_head_font_awesome' ) );
    class WordCamp_Fonts_Plugin { 
    2525        function init() {
    2626                $this->options = (array) get_option( 'wc-fonts-options', array() );
    2727        }
    28        
     28
    2929        /**
    3030         * Provides the <head> output for Typekit settings.
    3131         */
    3232        function wp_head_typekit() {
    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>' );
    3838        }
    class WordCamp_Fonts_Plugin { 
    9393        function admin_menu() {
    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
    9999         */
    class WordCamp_Fonts_Plugin { 
    101101                ?>
    102102                <div class="wrap">
    103103                        <?php screen_icon(); ?>
    104                         <h1>Fonts</h1>
     104                        <h1>WordCamp Fonts</h1>
    105105                        <?php settings_errors(); ?>
    106106                        <form method="post" action="options.php" enctype="multipart/form-data">
    107107                                <?php
    class WordCamp_Fonts_Plugin { 
    225225}
    226226
    227227// Go!
    228 new WordCamp_Fonts_Plugin;
    229  No newline at end of file
     228new WordCamp_Fonts_Plugin;