Files
xmartica/wp-content/plugins/polylang-pro/js/build/media.js
T
2026-10-12 09:09:57 -06:00

21 lines
433 B
JavaScript

/**
* @package Polylang
*/
/**
* Media list table
* When clicking on attach link, filters find post list per media language
*/
jQuery(
function ( $ ) {
$.ajaxPrefilter(
function ( options, originalOptions, jqXHR ) {
if ( 'string' === typeof options.data && -1 !== options.data.indexOf( 'action=find_posts' ) ) {
options.data = 'pll_post_id=' + $( '#affected' ).val() + '&' + options.data;
}
}
);
}
);