Skip to content

Instantly share code, notes, and snippets.

@garretthyder
Created February 4, 2019 18:19
Show Gist options
  • Save garretthyder/04bd855da5383c41d06de6d96ab58883 to your computer and use it in GitHub Desktop.
Save garretthyder/04bd855da5383c41d06de6d96ab58883 to your computer and use it in GitHub Desktop.
Revert React for Photomosaic
<?php
function revert_react() {
wp_deregister_script( 'react' );
wp_enqueue_script( 'react', '//cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.min.js', null, '0.13.3', true );
}
add_action('wp_enqueue_scripts', 'revert_react', 999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment