Making WordPress.org

Changeset 5900


Ignore:
Timestamp:
09/08/2017 07:02:15 PM (7 years ago)
Author:
iandunn
Message:

WordCamp Base: Remove unused and insecure code.

Some of this was never used (like theme options in Base v2), and some was deprecated but left in place for some reason. It's cluttering the codebase and contains dangerous uses of unserialize(), so let's get rid of it.

Location:
sites/trunk/wordcamp.org/public_html/wp-content/themes
Files:
57 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base-v2/functions.php

    r3275 r5900  
    4242     */
    4343    require( get_template_directory() . '/inc/template-tags.php' );
    44 
    45     /**
    46      * Custom functions that act independently of the theme templates
    47      */
    48     //require( get_template_directory() . '/inc/tweaks.php' );
    49 
    50     /**
    51      * Custom Theme Options
    52      */
    53     //require( get_template_directory() . '/inc/theme-options/theme-options.php' );
    54 
    55     /**
    56      * WordPress.com-specific functions and definitions
    57      */
    58     //require( get_template_directory() . '/inc/wpcom.php' );
    5944
    6045    /**
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base-v2/lib/class-wcb-manager.php

    r2 r5900  
    77        wcb_maybe_define( 'WCB_LIB_DIR', WCB_DIR . '/lib' );
    88        wcb_maybe_define( 'WCB_LIB_URL', WCB_URL . '/lib'  );
    9     }
    10 
    11     function includes() {
    12         require_once WCB_LIB_DIR . '/options/class-wcb-options.php';
    13         // require_once WCB_LIB_DIR . '/structure/class-wcb-structure.php';
    14         require_once WCB_LIB_DIR . '/speakers/class-wcb-speakers.php';
    15         require_once WCB_LIB_DIR . '/sessions/class-wcb-sessions.php';
    16         require_once WCB_LIB_DIR . '/sponsors/class-wcb-sponsors.php';
    17     }
    18 
    19     function loaded() {
    20         $this->components = array(
    21             'options'   => new WCB_Options(),
    22             // 'structure' => new WCB_Structure(),
    23             'speakers'  => ( apply_filters( 'wcb_load_component_speakers', true ) ) ? new WCB_Speakers() : false,
    24             'sessions'  => ( apply_filters( 'wcb_load_component_sessions', true ) ) ? new WCB_Sessions() : false,
    25             'sponsors'  => ( apply_filters( 'wcb_load_component_sponsors', true ) ) ? new WCB_Sponsors() : false,
    26         );
    279    }
    2810}
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base-v2/lib/utils/header.php

    r5898 r5900  
    7878
    7979/**
    80  * Print the typekit script tags.
    81  */
    82 function wcb_typekit_scripts() {
    83     $option = wcb_get_option( 'typekit' );
    84     $kit_id = apply_filters( 'wcb_typekit_id', $option );
    85 
    86     if ( empty( $kit_id ) )
    87         return;
    88 
    89     ?>
    90     <script type="text/javascript" src="//use.typekit.com/<?php echo esc_attr( $kit_id ); ?>.js"></script>
    91     <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
    92     <?php
    93 }
    94 
    95 /**
    9680 * Get the value for the <meta name="viewport"> tag
    9781 *
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base/lib/class-wcb-manager.php

    r5898 r5900  
    1212        require_once WCB_LIB_DIR . '/options/class-wcb-options.php';
    1313        require_once WCB_LIB_DIR . '/structure/class-wcb-structure.php';
    14         require_once WCB_LIB_DIR . '/speakers/class-wcb-speakers.php';
    15         require_once WCB_LIB_DIR . '/sessions/class-wcb-sessions.php';
    16         require_once WCB_LIB_DIR . '/sponsors/class-wcb-sponsors.php';
    1714    }
    1815
     
    2118            'options'   => new WCB_Options(),
    2219            'structure' => new WCB_Structure(),
    23             'speakers'  => ( apply_filters( 'wcb_load_component_speakers', true ) ) ? new WCB_Speakers() : false,
    24             'sessions'  => ( apply_filters( 'wcb_load_component_sessions', true ) ) ? new WCB_Sessions() : false,
    25             'sponsors'  => ( apply_filters( 'wcb_load_component_sponsors', true ) ) ? new WCB_Sponsors() : false,
    2620        );
    2721    }
Note: See TracChangeset for help on using the changeset viewer.