HEX
Server: Apache
System: Linux digivps 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC 2025 x86_64
User: www (1000)
PHP: 8.3.15
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/healthyton.com/wp-content/plugins/w3-total-cache/Generic_Plugin_AdminRowActions.php
<?php
namespace W3TC;

class Generic_Plugin_AdminRowActions {
	function run() {
		add_filter( 'post_row_actions', array(
				$this,
				'post_row_actions'
			), 0, 2 );

		add_filter( 'page_row_actions', array(
				$this,
				'page_row_actions'
			), 0, 2 );

		add_action( 'post_submitbox_start', array(
				$this,
				'post_submitbox_start'
			) );
	}


	/**
	 * post_row_actions filter
	 *
	 * @param array   $actions
	 * @param object  $post
	 * @return array
	 */
	function post_row_actions( $actions, $post ) {
		$capability = apply_filters(
			'w3tc_capability_row_action_w3tc_flush_post', 'manage_options' );

		if ( current_user_can( $capability ) )
			$actions = array_merge( $actions, array(
					'w3tc_flush_post' => sprintf( '<a href="%s">' . __( 'Purge from cache', 'w3-total-cache' ) . '</a>', wp_nonce_url( sprintf( 'admin.php?page=w3tc_dashboard&w3tc_flush_post&post_id=%d&force=true', $post->ID ), 'w3tc' ) )
				) );

		return $actions;
	}

	/**
	 * page_row_actions filter
	 *
	 * @param array   $actions
	 * @param object  $post
	 * @return array
	 */
	function page_row_actions( $actions, $post ) {
		$capability = apply_filters(
			'w3tc_capability_row_action_w3tc_flush_post', 'manage_options' );

		if ( current_user_can( $capability ) )
			$actions = array_merge( $actions, array(
					'w3tc_flush_post' => sprintf( '<a href="%s">' . __( 'Purge from cache', 'w3-total-cache' ) . '</a>', wp_nonce_url( sprintf( 'admin.php?page=w3tc_dashboard&w3tc_flush_post&post_id=%d&force=true', $post->ID ), 'w3tc' ) )
				) );

		return $actions;
	}

	/**
	 * Display Purge from cache on Page/Post post.php.
	 */
	function post_submitbox_start() {
		if ( current_user_can( 'manage_options' ) ) {
			global $post;
			if ( !is_null( $post ) ) {
				$url = Util_Ui::url(
					array(
						'page'            => 'w3tc_dashboard',
						'w3tc_flush_post' => 'y',
						'post_id'         => $post->ID,
						'force'           => true,
					)
				);

				echo sprintf(
					'<div><a href="%s">%s</a></div>',
					esc_url( $url ),
					esc_html__( 'Purge from cache', 'w3-total-cache' )
				);
			}
		}
	}
}