芝麻web文件管理V1.00
编辑当前文件:/home/mybf1/www/class.bf1.my/wp-content/plugins/all-in-one-seo-pack/app/Common/Utils/Assets.php
core = $core; $this->version = aioseo()->version; $this->manifestFile = AIOSEO_DIR . '/dist/' . aioseo()->versionPath . '/manifest.php'; $this->isDev = aioseo()->isDev; if ( $this->isDev ) { $this->domain = getenv( 'VITE_AIOSEO_DOMAIN' ); $this->port = getenv( 'VITE_AIOSEO_DEV_PORT' ); } add_filter( 'script_loader_tag', [ $this, 'scriptLoaderTag' ], 10, 3 ); add_action( 'admin_head', [ $this, 'devRefreshRuntime' ] ); add_action( 'wp_head', [ $this, 'devRefreshRuntime' ] ); } /** * Get the public URL base. * * @since 4.1.9 * * @return string The URL base. */ private function getPublicUrlBase() { return $this->shouldLoadDev() ? $this->getDevUrl() . 'dist/' . aioseo()->versionPath . '/assets/' : $this->basePath(); } /** * Get the base path URL. * * @since 4.1.9 * * @return string The base path URL. */ private function basePath() { return $this->normalizeAssetsHost( plugins_url( 'dist/' . aioseo()->versionPath . '/assets/', AIOSEO_FILE ) ); } /** * Adds the RefreshRuntime. * * @since 4.1.9 * * @return void */ public function devRefreshRuntime() { if ( $this->shouldLoadDev() ) { echo sprintf( '', $this->getDevUrl() ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } }