文件操作 - PUE.php
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/the-events-calendar/common/src/Tribe/Service_Providers/PUE.php
编辑文件内容
<?php namespace Tribe\Service_Providers; use Tribe\PUE\Update_Prevention; use TEC\Common\Contracts\Service_Provider; /** * Hooks and manages the implementation and loading of PUE. * * We are still moving pieces into this Service Provider, so look around * the `src/Tribe/PUE/` folder for other items that are not managed here * just yet. * * @since 4.9.12 */ class PUE extends Service_Provider { /** * Binds and sets up implementations. * * @since 4.9.12 */ public function register() { $this->container->singleton( Update_Prevention::class, Update_Prevention::class ); // Setup all of WP hooks associated with PUE. $this->register_hooks(); } /** * Registers the provider handling all the 1st level filters and actions for PUE. * * @since 4.9.2 */ protected function register_hooks() { add_filter( 'upgrader_source_selection', [ $this, 'filter_upgrader_source_selection' ], 15, 4 ); } /** * Filters the source file location for the upgrade package for the PUE Update_Prevention engine. * * @since 4.9.12 * * @param string $source File source location. * @param string $remote_source Remote file source location. * @param WP_Upgrader $upgrader WP_Upgrader instance. * @param array $extra Extra arguments passed to hooked filters. */ public function filter_upgrader_source_selection( $source, $remote_source, $upgrader, $extras ) { return $this->container->make( Update_Prevention::class )->filter_upgrader_source_selection( $source, $remote_source, $upgrader, $extras ); } }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件