Plugin Directory

Changeset 699995

Timestamp:
04/18/2013 11:57:25 PM (11 years ago)
Author:
stephenh1988
Message:

Remove duplicated function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • event-organiser/trunk/includes/event-organiser-register.php

    r699979 r699995  
    117117}
    118118add_action( 'admin_init', 'eventorganiser_register_scripts', 5 );
    119 
    120  /**
    121  * The "Comprehensive Google Map Plugin" plug-in deregisters all other Google scripts registered
    122  * by other plug-ins causing these plug-ins not to function. This plug-in removes that behaviour.
    123  *
    124  * Of course if two google scripts are loaded there may be problems, but this is better than always having
    125  * experiencing a 'bug'. At time writing the function responsible `cgmp_google_map_deregister_scripts()`
    126  * can be found here {@see https://github.com/azagniotov/Comprehensive-Google-Map-Plugin/blob/master/functions.php#L520 }
    127  *
    128  * @see https://github.com/stephenharris/Event-Organiser/issues/49
    129  * @see http://wordpress.org/support/topic/googlemap-doesnt-shown-on-event-detail-page
    130  * @since 1.7.4
    131  * @ignore
    132  * @access private
    133  */
    134 function eventorganiser_cgmp_workaround(){
    135     remove_action( 'wp_head', 'cgmp_google_map_deregister_scripts', 200 );
    136 }
    137 add_action( 'wp_head', 'eventorganiser_cgmp_workaround', 1 );
    138119
    139120 /**
Note: See TracChangeset for help on using the changeset viewer.