View gist:932b8da25b87ad2d9dd9
1 2 3 4 5 6 7 8 9
function bugs_update_content_split_terms( $old_term_id, $new_term_id, $term_taxonomy_id, $taxonomy ) {
$term_meta = get_option( 'taxonomy_' . $old_term_id );
if ( 'espn_bug' === $taxonomy && $term_meta ) {
// We have a match, so we swap out the old tag ID for the new one and resave the option.
update_option( 'taxonomy_' . $new_term_id, $term_meta );
}
}
add_action( 'split_shared_term', 'bugs_update_content_split_terms', 10, 4 );
View Alter TABLE if install fails.
1 2 3 4
ALTER TABLE wp_ai1ec_events MODIFY COLUMN `start` INT(10) UNSIGNED NOT NULL;
ALTER TABLE wp_ai1ec_events MODIFY COLUMN `end` INT(10) UNSIGNED;
ALTER TABLE wp_ai1ec_event_instances MODIFY COLUMN `end` INT(10) UNSIGNED NOT NULL;
ALTER TABLE wp_ai1ec_event_instances MODIFY COLUMN `start` INT(10) UNSIGNED NOT NULL;
View restore events instances
1 2 3
UPDATE wp_ai1ec_event_instances, wp_ai1ec_event_instances_restore
SET wp_ai1ec_event_instances.`end` = UNIX_TIMESTAMP(wp_ai1ec_event_instances_restore.`end`)
WHERE wp_ai1ec_event_instances.id = wp_ai1ec_event_instances_restore.id
View Restore events
1 2 3
UPDATE wp_ai1ec_events, wp_ai1ec_events_restore
SET wp_ai1ec_events.`start` = UNIX_TIMESTAMP(wp_ai1ec_events_restore.`start`)
WHERE wp_ai1ec_events.post_id = wp_ai1ec_events_restore.post_id
View Front end modal not showing corretcly
1 2 3 4 5 6 7 8
jQuery('#ai1ec-create-event-modal').parents().each(function(){
var $this = jQuery(this);
var position = $this.css('position');
if( position === 'relative' ) {
console.log(this);
$this.css('position', 'static');
}
});
View Register shutdown function
1 2 3 4 5 6 7 8
function shutdown() {
$error = error_get_last();
echo '<pre>';
var_dump($error);
echo '</pre>';
}
 
register_shutdown_function('shutdown');
View apc.php
1 2 3 4 5 6 7 8 9 10
<?php
/*
+----------------------------------------------------------------------+
| APC |
+----------------------------------------------------------------------+
| Copyright (c) 2006-2011 The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
Something went wrong with that request. Please try again.