This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function()%7B%20window.location%20=%20document.querySelector(%22%23galleryWrapper%20.carousel-content%20.item.active%20img%22).src%20%7D)(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log( document.cookie ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* VIP: make the Photonfill plugin working with the VIP Go file service instead of WPCOM's Photon. | |
*/ | |
// Hijack the photonfill prefix. | |
add_filter( 'photonfill_hook_prefix', function( $prefix ) { | |
return 'vipgo'; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Apply Filters debug | |
Description: A debug function for figuring out what filter's callback changed the value | |
Version: 0.1 | |
Author: Automattic, david-binda | |
Author URI: http://www.automattic.com/ | |
*/ | |
/* This program is free software; you can redistribute it and/or modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//disable cache invalidation just before the term objects cache is cleared | |
function my_prefix_deactivate_cache_invalidation( $tt_id, $taxonomy ) { | |
//wp_suspend_cache_invalidation returns current status before it get's changed | |
$current_cache_suspend_status = wp_suspend_cache_invalidation( true ); | |
//schedule asynchronous cache clearing | |
wp_schedule_single_event( time(), 'my_prefix_invalidate_term_objects_cache', array( $tt_id, $taxonomy ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Purpose | |
WordCamp CITYNAMEHERE believes our community should be truly open for everyone. As such, we are committed to providing a friendly, safe and welcoming environment for all, regardless of gender, sexual orientation, disability, ethnicity, religion, preferred operating system, programming language, or text editor. | |
This code of conduct outlines our expectations for participant behavior as well as the consequences for unacceptable behavior. | |
We invite all sponsors, volunteers, speakers, attendees, and other participants to help us realize a safe and positive conference experience for everyone. | |
2. Open Source Citizenship |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- log-deprecated-notices.php 2015-11-06 18:00:35.000000000 +0100 | |
+++ log-deprecated-notices.php 2015-12-11 14:14:09.000000000 +0100 | |
@@ -181,9 +181,17 @@ | |
$hook = null; | |
$bt = 4; | |
// Check if we're a hook callback. | |
- if ( ! isset( $backtrace[4]['file'] ) && 'call_user_func_array' == $backtrace[5]['function'] ) { | |
- $hook = $backtrace[6]['args'][0]; | |
- $bt = 6; | |
+ if ( ! isset( $backtrace[4]['file'] ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', function() { | |
//bail early as this should go to admin only | |
if ( ! is_admin() ) { | |
return; | |
} | |
new Babble_Translatable_Fieldmanager( | |
'Fieldmanager_TextField', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wp_is_mobile() { | |
/*static $is_mobile; | |
if ( isset($is_mobile) ) | |
return $is_mobile;/* removed for performance testing purposes */ | |
if ( empty($_SERVER['HTTP_USER_AGENT']) ) { | |
$is_mobile = false; | |
} elseif ( strpos($_SERVER['HTTP_USER_AGENT'], 'Mobile') !== false // many mobile devices (all iPhone, iPad, etc.) | |
|| strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* následující kód vložte do souboru (libovolného jména) uvnitř adresáře /wp-content/mu-plugins (pokud neexistuje, vytvořte jej) | |
* více o mu-plugins zde: http://codex.wordpress.org/Must_Use_Plugins | |
* Kód bude fungovat i po vložení do functions.php, nicméně toto by, imho, mělo jít do mu-plugins | |
*/ | |
add_filter( 'login_message', function( $message ) { | |
return $message . sprintf( '<p class="message register">%s</p>' , 'Nepište prosím diakritiku' ); | |
} ); |
NewerOlder