[wp-trac] [WordPress Trac] #45953: Jquery & Jquery UI update
WordPress Trac
noreply at wordpress.org
Sat Jan 12 08:36:07 UTC 2019
#45953: Jquery & Jquery UI update
-------------------------------------+-------------------------------------
Reporter: Webzzz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: major | Resolution:
Keywords: needs-refresh needs- | Focuses: ui, accessibility,
dev-note needs-patch | javascript, performance, privacy,
| coding-standards
-------------------------------------+-------------------------------------
Comment (by kamalireal):
Replying to [ticket:45953 Webzzz]:
Hi @Webzzz, Thanks for the report.
When you are updating wordpress, the files are replaced.
You can remove wordpress jquery / embed from your theme. for do this ,
insert this code in your functions.php (theme) :
{{{#!php
// Remove Jquery
function site_init() { wp_deregister_script('jquery'); }
add_action('init', 'site_init');
// REMOVE WP Embed
function my_deregister_scripts(){ wp_deregister_script( 'wp-embed' ); }
add_action( 'wp_footer', 'my_deregister_scripts' );
}}}
And then insert your jquery (new version) in footer.php theme.
for example :
{{{
<script type='text/javascript'
src='http://yourwebsite_url.com/jquery.js'></script>
}}}
**Note: If you do not use jQuery, the function of some sections of your
template or plugins stops.**
Good luck.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45953#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list