Skip to content

Instantly share code, notes, and snippets.

View Allan-W-Smith's full-sized avatar

Allan Smith Allan-W-Smith

  • Australia
View GitHub Profile
@Allan-W-Smith
Allan-W-Smith / .gitconfig
Created August 29, 2018 01:48
.gitconfig
[user]
name = Allan Smith
email = allan@example.org
[core]
excludesfile = ~/.gitignore
autocrlf = input
editor = /opt/sublime_text/sublime_text
[diff]
tool = bc
guitool = bcompare
@Allan-W-Smith
Allan-W-Smith / functions.php
Created October 10, 2016 23:55
Old Wordpress Themes in 4.5 fix : Syntax error, unrecognized expression: [href=#]
/* Since Wordpress 4.5 alot of old themes throw an error similar to: Syntax error, unrecognized expression: [href=#] */
/* If updating your themes/plugins doesnt resolve the issue, add this to bottom of the current themes functions.php */
add_action( 'wp_enqueue_scripts', 'fix_jquery', 100 );
function fix_jquery() {
if ( ! is_admin() ) {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', ( "//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ), false, '1.11.3' );
wp_enqueue_script( 'jquery' );