403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.127
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/repository/wp-content/plugins/jetpack/sync/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/repository/wp-content/plugins/jetpack/sync/class.jetpack-sync-module-attachments.php
<?php

class Jetpack_Sync_Module_Attachments extends Jetpack_Sync_Module {
	function name() {
		return 'attachments';
	}

	public function init_listeners( $callable ) {
		add_action( 'edit_attachment', array( $this, 'send_attachment_info' ) );
		// Once we don't have to support 4.3 we can start using add_action( 'attachment_updated', $handler, 10, 3 ); instead
		add_action( 'add_attachment', array( $this, 'send_attachment_info' ) );
		add_action( 'jetpack_sync_save_update_attachment', $callable, 10, 2 );
		add_action( 'jetpack_sync_save_add_attachment', $callable, 10, 2 );
	}

	function send_attachment_info( $attachment_id ) {
		$attachment = get_post( $attachment_id );
		if ( 'add_attachment' === current_filter() ) {
			/**
			 * Fires when the client needs to sync an new attachment
			 *
			 * @since 4.2.0
			 *
			 * @param int The attachment ID
			 * @param object The attachment
			 */
			do_action( 'jetpack_sync_save_add_attachment', $attachment_id, $attachment );
		} else {
			/**
			 * Fires when the client needs to sync an updated attachment
			 *
			 * @since 4.9.0
			 *
			 * @param int The attachment ID
			 * @param object The attachment
			 *
			 * Previously this action was synced using jetpack_sync_save_add_attachment action.
			 */
			do_action( 'jetpack_sync_save_update_attachment', $attachment_id, $attachment );
		}

	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit