Add PSR HTTP Message Interfaces and Dependencies
- Implemented StreamInterface, UploadedFileInterface, and UriInterface as per PSR standards. - Added getallheaders function to retrieve HTTP headers in a compatible manner. - Included LICENSE files for ralouphie/getallheaders and symfony/deprecation-contracts. - Introduced function for triggering deprecation notices in Symfony.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
jQuery(document).ready(function($){
|
||||
$('.cpt-dashboard-tab').click(function(){
|
||||
var tab = $(this).data('tab');
|
||||
$('.cpt-dashboard-table').hide();
|
||||
$('#cpt-'+tab+'-table').show();
|
||||
|
||||
$('.cpt-dashboard-tab').removeClass('cpt-active');
|
||||
$(this).addClass('cpt-active');
|
||||
|
||||
$('.cpt-dashboard-tables').find('table').hide();
|
||||
$('#cpt-'+tab+'-table').show();
|
||||
});
|
||||
|
||||
$('.atfpp-review-notice-dismiss button').click(function(){
|
||||
var prefix = $(this).closest('.atfpp-review-notice-dismiss').data('prefix');
|
||||
var nonce = $(this).closest('.atfpp-review-notice-dismiss').data('nonce');
|
||||
|
||||
$.post(ajaxurl, {action: 'atfpp_hide_review_notice', prefix: prefix, nonce: nonce}, (response)=>{
|
||||
$(this).closest('.cpt-review-notice').slideUp();
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user