Changeset 699995
- Timestamp:
- 04/18/2013 11:57:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
event-organiser/trunk/includes/event-organiser-register.php
r699979 r699995 117 117 } 118 118 add_action( 'admin_init', 'eventorganiser_register_scripts', 5 ); 119 120 /**121 * The "Comprehensive Google Map Plugin" plug-in deregisters all other Google scripts registered122 * 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 having125 * 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/49129 * @see http://wordpress.org/support/topic/googlemap-doesnt-shown-on-event-detail-page130 * @since 1.7.4131 * @ignore132 * @access private133 */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 );138 119 139 120 /**
Note: See TracChangeset
for help on using the changeset viewer.