Making WordPress.org


Ignore:
Timestamp:
09/08/2014 06:43:48 PM (11 years ago)
Author:
iandunn
Message:

SSL Workarounds: Add function prefixes to avoid naming collisions.

File:
1 edited

Legend:

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

    r839 r840  
    3232 * when opening the link.
    3333 */
    34 function use_http_url_scheme( $url, $scheme, $original_scheme ) {
     34function wcorg_use_http_url_scheme( $url, $scheme, $original_scheme ) {
    3535    if ( is_network_admin() ) {
    3636        $hostname = parse_url( $url, PHP_URL_HOST );
     
    4343    return $url;
    4444}
    45 add_filter( 'set_url_scheme', 'use_http_url_scheme', 10, 3 );
     45add_filter( 'set_url_scheme', 'wcorg_use_http_url_scheme', 10, 3 );
    4646
    4747/**
     
    5757 * @param WP_Styles $styles
    5858 */
    59 function load_select_core_styles_from_cdn( $styles ) {
     59function wcorg_load_select_core_styles_from_cdn( $styles ) {
    6060    global $pagenow;
    6161
     
    7272    }
    7373}
    74 add_action( 'wp_default_styles', 'load_select_core_styles_from_cdn' );
     74add_action( 'wp_default_styles', 'wcorg_load_select_core_styles_from_cdn' );
    7575
    7676/**
     
    8181 * @param string $hook
    8282 */
    83 function load_select_plugin_styles_from_cdn( $hook ) {
     83function wcorg_load_select_plugin_styles_from_cdn( $hook ) {
    8484    if ( ! is_network_admin() ) {
    8585        return;
     
    9696
    9797}
    98 add_action( 'admin_enqueue_scripts', 'load_select_plugin_styles_from_cdn' );
     98add_action( 'admin_enqueue_scripts', 'wcorg_load_select_plugin_styles_from_cdn' );
Note: See TracChangeset for help on using the changeset viewer.