Changeset 3416076
- Timestamp:
- 12/10/2025 07:51:48 AM (4 months ago)
- Location:
- nativerent/trunk
- Files:
-
- 6 edited
-
inc/Common/Entities/CmsInfo.php (modified) (3 diffs)
-
nativerent.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
vendor/autoload.php (modified) (1 diff)
-
vendor/composer/autoload_real.php (modified) (5 diffs)
-
vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nativerent/trunk/inc/Common/Entities/CmsInfo.php
r3300608 r3416076 25 25 private $plugins; 26 26 27 /** @var string */ 27 /** 28 * @var string 29 */ 28 30 private $runtime; 31 32 /** 33 * @var string 34 */ 35 private $pluginUrl; 29 36 30 37 /** 31 38 * @param string $version 32 39 * @param PluginItem[] $plugins 40 * @param string $pluginUrl 33 41 */ 34 public function __construct( $version = '', $plugins = [] ) {42 public function __construct( $version = '', $plugins = [], $pluginUrl = '' ) { 35 43 $this->cms = 'WordPress'; 36 44 $this->version = $version; 37 45 $this->plugins = $plugins; 38 46 $this->runtime = 'php-' . phpversion(); 47 $this->pluginUrl = $pluginUrl; 39 48 } 40 49 … … 45 54 */ 46 55 public static function autoCreate() { 47 return new self( self::getWordPressVersion(), self::getAllInstalledPlugins() ); 56 return new self( 57 self::getWordPressVersion(), 58 self::getAllInstalledPlugins(), 59 self::getPluginUrl() 60 ); 61 } 62 63 /** 64 * Get the plugin placement URI. 65 * 66 * @return string 67 */ 68 public static function getPluginUrl() { 69 return plugins_url( '', NATIVERENT_PLUGIN_FILE ); 48 70 } 49 71 … … 117 139 public function jsonSerialize() { 118 140 return [ 119 'cms' => $this->getCmsName(), 120 'version' => $this->getCmsVersion(), 121 'plugins' => $this->getPlugins(), 122 'runtime' => $this->runtime, 141 'cms' => $this->getCmsName(), 142 'version' => $this->getCmsVersion(), 143 'plugins' => $this->getPlugins(), 144 'runtime' => $this->runtime, 145 'pluginUrl' => $this->pluginUrl, 123 146 ]; 124 147 } -
nativerent/trunk/nativerent.php
r3300608 r3416076 4 4 * Plugin URI: https://wordpress.org/plugins/nativerent/ 5 5 * Description: Релевантная реклама для ваших читателей. Рекламодатели сервиса платят в 2-3 раза больше за 1 тыс. показов страниц, чем привычные рекламные сетки. Страница выкупается полностью, на ней размещается максимум четыре рекламных блока, которые выглядят нативно в стиле сайта. 6 * Version: 2.1. 46 * Version: 2.1.5 7 7 * Requires at least: 4.9 8 * Tested up to: 6. 88 * Tested up to: 6.9 9 9 * Requires PHP: 5.6.20 10 10 * Author: Native Rent … … 28 28 // Plugin version. 29 29 if ( ! defined( 'NATIVERENT_PLUGIN_VERSION' ) ) { 30 define( 'NATIVERENT_PLUGIN_VERSION', '2.1. 4' );30 define( 'NATIVERENT_PLUGIN_VERSION', '2.1.5' ); 31 31 } 32 32 // Plugin Folder Path. -
nativerent/trunk/readme.txt
r3300608 r3416076 5 5 Plugin URI: https://wordpress.org/plugins/nativerent/ 6 6 Requires at least: 4.9 7 Tested up to: 6. 87 Tested up to: 6.9 8 8 Requires PHP: 5.6.20 9 Stable tag: 2.1. 49 Stable tag: 2.1.5 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
nativerent/trunk/vendor/autoload.php
r3300608 r3416076 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit d769760318e326c40587b54124cedd81::getLoader();7 return ComposerAutoloaderInit419f8c3c2d47b34eee491a1c33fd23e3::getLoader(); -
nativerent/trunk/vendor/composer/autoload_real.php
r3300608 r3416076 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit d769760318e326c40587b54124cedd815 class ComposerAutoloaderInit419f8c3c2d47b34eee491a1c33fd23e3 6 6 { 7 7 private static $loader; … … 23 23 } 24 24 25 spl_autoload_register(array('ComposerAutoloaderInit d769760318e326c40587b54124cedd81', 'loadClassLoader'), true, true);25 spl_autoload_register(array('ComposerAutoloaderInit419f8c3c2d47b34eee491a1c33fd23e3', 'loadClassLoader'), true, true); 26 26 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 27 spl_autoload_unregister(array('ComposerAutoloaderInit d769760318e326c40587b54124cedd81', 'loadClassLoader'));27 spl_autoload_unregister(array('ComposerAutoloaderInit419f8c3c2d47b34eee491a1c33fd23e3', 'loadClassLoader')); 28 28 29 29 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 31 31 require __DIR__ . '/autoload_static.php'; 32 32 33 call_user_func(\Composer\Autoload\ComposerStaticInit d769760318e326c40587b54124cedd81::getInitializer($loader));33 call_user_func(\Composer\Autoload\ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3::getInitializer($loader)); 34 34 } else { 35 35 $map = require __DIR__ . '/autoload_namespaces.php'; … … 52 52 53 53 if ($useStaticLoader) { 54 $includeFiles = Composer\Autoload\ComposerStaticInit d769760318e326c40587b54124cedd81::$files;54 $includeFiles = Composer\Autoload\ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3::$files; 55 55 } else { 56 56 $includeFiles = require __DIR__ . '/autoload_files.php'; 57 57 } 58 58 foreach ($includeFiles as $fileIdentifier => $file) { 59 composerRequire d769760318e326c40587b54124cedd81($fileIdentifier, $file);59 composerRequire419f8c3c2d47b34eee491a1c33fd23e3($fileIdentifier, $file); 60 60 } 61 61 … … 69 69 * @return void 70 70 */ 71 function composerRequire d769760318e326c40587b54124cedd81($fileIdentifier, $file)71 function composerRequire419f8c3c2d47b34eee491a1c33fd23e3($fileIdentifier, $file) 72 72 { 73 73 if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { -
nativerent/trunk/vendor/composer/autoload_static.php
r3300608 r3416076 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit d769760318e326c40587b54124cedd817 class ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3 8 8 { 9 9 public static $files = array ( … … 178 178 { 179 179 return \Closure::bind(function () use ($loader) { 180 $loader->prefixLengthsPsr4 = ComposerStaticInit d769760318e326c40587b54124cedd81::$prefixLengthsPsr4;181 $loader->prefixDirsPsr4 = ComposerStaticInit d769760318e326c40587b54124cedd81::$prefixDirsPsr4;182 $loader->classMap = ComposerStaticInit d769760318e326c40587b54124cedd81::$classMap;180 $loader->prefixLengthsPsr4 = ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3::$prefixLengthsPsr4; 181 $loader->prefixDirsPsr4 = ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3::$prefixDirsPsr4; 182 $loader->classMap = ComposerStaticInit419f8c3c2d47b34eee491a1c33fd23e3::$classMap; 183 183 184 184 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.