File Editor
Directories:
.. (Back)
blocks
build
fonts
genericons
lib
social-logos
Files:
accessible-focus.js
blogging-prompts.php
class.jetpack-provision.php
crowdsignal-shortcode.js
crowdsignal-survey.js
deprecate.js
facebook-embed.js
gallery-settings.js
genericons.php
jetpack-admin.js
jetpack-deactivate-dialog.js
jetpack-modules.js
jetpack-modules.models.js
jetpack-modules.views.js
polldaddy-shortcode.js
social-logos.php
twitter-timeline.js
Create New File
Create
Edit File: deprecate.js
addEventListener( 'DOMContentLoaded', () => { const notices = document.getElementsByClassName( 'jetpack-deprecate-dismissible' ); for ( let i = 0; i < notices.length; ++i ) { if ( ! notices[ i ].hasAttribute( 'id' ) ) { continue; } notices[ i ].addEventListener( 'click', event => { if ( event.target.classList.contains( 'notice-dismiss' ) ) { document.cookie = 'jetpack_deprecate_dismissed[' + notices[ i ].getAttribute( 'id' ) + ']=1; expires=Fri, 31 Dec 9999 23:59:59 GMT; SameSite=None;'; } } ); } } );
Save Changes
Rename File
Rename