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
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: skeleton | |
# Required-Start: $remote_fs $networking | |
# Required-Stop: $remote_fs $networking | |
# Should-Start: pulseaudio alsa-utils hostname | |
# Should-Stop: pulseaudio alsa-utils hostname | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO |
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: Test plugin | |
Plugin URI: http://snippets.khromov.se/useful-wordpress-filters-drew-jaynes-wordpress-talk | |
Description: Test plugin | |
Version: 1.0 | |
Author: khromov | |
Author URI: http://snippets.khromov.se | |
License: GPL2 | |
*/ |
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
/** Break html5 cart caching */ | |
add_action('wp_enqueue_scripts', 'cartcache_enqueue_scripts', 100); | |
function cartcache_enqueue_scripts() | |
{ | |
wp_deregister_script('wc-cart-fragments'); | |
wp_enqueue_script( 'wc-cart-fragments', get_template_directory_uri() . '/cart-fragments.js', array( 'jquery', 'jquery-cookie' ), '1.0', true ); | |
} |
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: Contact Form 7 Post Title shortcode | |
Plugin URI: | |
Description: Use in form: [post_title thetitle] - use in email (to get value): [thetitle] | |
Version: 2014.04.07 | |
Author: khromov | |
Author URI: http://profiles.wordpress.org/khromov/ | |
License: GPL2 | |
*/ |
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: WP Users Media | |
* Plugin URI: http://www.wknet.com/wp-users-media/ | |
* Description: WP Users Media is a WordPress plugin that displays only the current users media files and attachments in WP Admin. | |
* Version: 1.0.3 | |
* Author: Damir Calusic | |
* Author URI: http://www.damircalusic.com/ | |
* License: GPLv2 | |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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
/*! | |
* Grid portion of Bootstrap under sc- namespace. | |
* Classes: | |
* sc-container-fluid, sc-row, sc-col-X-Y (like regular B3) | |
* | |
* For more info, see: | |
* http://snippets.khromov.se/decoupled-bootstrap-3-grid/ | |
* | |
* Bootstrap v3.2.0 (http://getbootstrap.com) | |
* Copyright 2011-2014 Twitter, Inc. |
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 | |
/** | |
* Helper function to get sanitized field | |
* and also normalize values. | |
* | |
* @param $field_key | |
* @param bool $post_id | |
* @param bool $format_value | |
* @param string $sanitization_method esc_html / esc_attr or NULL for none | |
* @return array|bool|string |
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
lol</span><script>alert(1);</script> |
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
/* | |
* Tiny mobile detection script, courtesy of | |
* https://github.com/markdalgleish/stellar.js/issues/37 | |
*/ | |
var isMobile = { | |
Android: function() { | |
return navigator.userAgent.match(/Android/i); | |
}, | |
BlackBerry: function() { | |
return navigator.userAgent.match(/BlackBerry/i); |
OlderNewer