HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/nextgen-gallery/static/IGW/Block/src/post-thumbnail.jsx
import NGGFeaturedImage from './components/ngg-post-thumbnail.jsx';

const {select}   = wp.data;
const {Fragment} = wp.element

function setFeaturedImageDisplay(OriginalComponent) {
    return (props) => {
        const meta = select('core/editor').getCurrentPostAttribute('meta')
        const nggFeaturedImage = meta ? <NGGFeaturedImage {...props} meta={meta}/> : null
        return (
            <Fragment>
                <OriginalComponent {...props}/>
                {nggFeaturedImage}
            </Fragment>
        );
    }
}

wp.hooks.addFilter('editor.PostFeaturedImage', 'imagely/featured-image-display', setFeaturedImageDisplay);