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
RewriteEngine on | |
# | |
# stuff to let through (ignore) | |
RewriteCond %{QUERY_STRING} ^p=2169$ [OR] | |
RewriteCond %{REQUEST_URI} "/folder2/" | |
RewriteRule (.*) $1 [L,R=401] | |
# |
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
function my_get_referer($value) { | |
return $_SESSION['gallery_last_view_item']; | |
} | |
add_filter( 'wherego_get_referer', 'my_get_referer' ); |
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
/** | |
* Enqueues the scripts needed by WDTGFH. | |
* | |
* @since 1.7 | |
* @return void | |
*/ | |
function wherego_enqueue_scripts() { | |
global $post; | |
if ( is_singular() ) { |
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 | |
global $post; | |
wp_head(); | |
?> | |
<img src="<?php echo $post->guid ?>" class="wp-image" alt=""> | |
<?php | |
wp_footer(); |
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
var imagesToggleCollapse = { | |
init: function(){ | |
var _ = this; | |
_.grabDOM(); | |
_.addButton(); | |
_.bindEvents(); | |
}, |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress | |
# Bare Minimum Git | |
# http://ironco.de/bare-minimum-git/ | |
# ver 20150227 | |
# | |
# This file is tailored for a WordPress project | |
# using the default directory structure | |
# | |
# This file specifies intentionally untracked files to ignore |
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
rm -fr .git | |
git init | |
git remote add origin your-git-remote-url | |
git fetch | |
git reset --hard origin/master |