Version Description
- Use newest version of Upstatement/routes for WordPress 6.0 by @jarednova in #2595
Download this release
Release Info
Developer | jarednova |
Plugin | Timber |
Version | 1.20.0 |
Comparing to | |
See all releases |
Code changes from version 1.19.2 to 1.20.0
- lib/Timber.php +1 -1
- readme.txt +6 -2
- timber.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +9 -9
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +6 -6
- vendor/composer/installed.json +8 -8
- vendor/composer/installed.php +9 -9
- vendor/upstatement/routes/.travis.yml +2 -8
- vendor/upstatement/routes/Routes.php +1 -1
- vendor/upstatement/routes/composer.json +2 -2
lib/Timber.php
CHANGED
@@ -35,7 +35,7 @@ use Timber\Loader;
|
|
35 |
*/
|
36 |
class Timber {
|
37 |
|
38 |
-
public static $version = '1.
|
39 |
public static $locations;
|
40 |
public static $dirname = 'views';
|
41 |
public static $twig_cache = false;
|
35 |
*/
|
36 |
class Timber {
|
37 |
|
38 |
+
public static $version = '1.20.0';
|
39 |
public static $locations;
|
40 |
public static $dirname = 'views';
|
41 |
public static $twig_cache = false;
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: jarednova
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 4.9.8
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 1.
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -38,6 +38,10 @@ _Twig is the template language powering Timber; if you need a little background
|
|
38 |
|
39 |
**Fixes and improvements**
|
40 |
|
|
|
|
|
|
|
|
|
41 |
= 1.19.2 =
|
42 |
|
43 |
**Fixes and improvements**
|
2 |
Contributors: jarednova
|
3 |
Tags: template engine, templates, twig
|
4 |
Requires at least: 4.9.8
|
5 |
+
Tested up to: 6.0.0
|
6 |
+
Stable tag: 1.20.0
|
7 |
Requires PHP: 5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
38 |
|
39 |
**Fixes and improvements**
|
40 |
|
41 |
+
= 1.20.0 =
|
42 |
+
|
43 |
+
* Use newest version of Upstatement/routes for WordPress 6.0 by @jarednova in #2595
|
44 |
+
|
45 |
= 1.19.2 =
|
46 |
|
47 |
**Fixes and improvements**
|
timber.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Timber
|
|
4 |
Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
|
5 |
Plugin URI: https://upstatement.com/timber
|
6 |
Author: Jared Novack + Upstatement
|
7 |
-
Version: 1.
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
4 |
Description: The WordPress Timber Library allows you to write themes using the power of Twig templates.
|
5 |
Plugin URI: https://upstatement.com/timber
|
6 |
Author: Jared Novack + Upstatement
|
7 |
+
Version: 1.20.0
|
8 |
Author URI: http://upstatement.com/
|
9 |
*/
|
10 |
// we look for Composer files first in the plugins dir.
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit1fb235bc74e35292d2b088681fade654::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -25,12 +25,12 @@ class InstalledVersions
|
|
25 |
private static $installed = array (
|
26 |
'root' =>
|
27 |
array (
|
28 |
-
'pretty_version' => 'dev
|
29 |
-
'version' => 'dev
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
-
'reference' => '
|
34 |
'name' => 'timber/timber',
|
35 |
),
|
36 |
'versions' =>
|
@@ -78,12 +78,12 @@ private static $installed = array (
|
|
78 |
),
|
79 |
'timber/timber' =>
|
80 |
array (
|
81 |
-
'pretty_version' => 'dev
|
82 |
-
'version' => 'dev
|
83 |
'aliases' =>
|
84 |
array (
|
85 |
),
|
86 |
-
'reference' => '
|
87 |
),
|
88 |
'twig/cache-extension' =>
|
89 |
array (
|
@@ -105,12 +105,12 @@ private static $installed = array (
|
|
105 |
),
|
106 |
'upstatement/routes' =>
|
107 |
array (
|
108 |
-
'pretty_version' => '0.
|
109 |
-
'version' => '0.
|
110 |
'aliases' =>
|
111 |
array (
|
112 |
),
|
113 |
-
'reference' => '
|
114 |
),
|
115 |
),
|
116 |
);
|
25 |
private static $installed = array (
|
26 |
'root' =>
|
27 |
array (
|
28 |
+
'pretty_version' => '1.20.0.x-dev',
|
29 |
+
'version' => '1.20.0.9999999-dev',
|
30 |
'aliases' =>
|
31 |
array (
|
32 |
),
|
33 |
+
'reference' => '3ac8c7629656009b9e0d6d9e4ccda202aad3b8e0',
|
34 |
'name' => 'timber/timber',
|
35 |
),
|
36 |
'versions' =>
|
78 |
),
|
79 |
'timber/timber' =>
|
80 |
array (
|
81 |
+
'pretty_version' => '1.20.0.x-dev',
|
82 |
+
'version' => '1.20.0.9999999-dev',
|
83 |
'aliases' =>
|
84 |
array (
|
85 |
),
|
86 |
+
'reference' => '3ac8c7629656009b9e0d6d9e4ccda202aad3b8e0',
|
87 |
),
|
88 |
'twig/cache-extension' =>
|
89 |
array (
|
105 |
),
|
106 |
'upstatement/routes' =>
|
107 |
array (
|
108 |
+
'pretty_version' => '0.9.1',
|
109 |
+
'version' => '0.9.1.0',
|
110 |
'aliases' =>
|
111 |
array (
|
112 |
),
|
113 |
+
'reference' => 'cac3c844ab824e4039fd26edbea5402415aa6d0a',
|
114 |
),
|
115 |
),
|
116 |
);
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitb09ed3b21b75518e597c3ad55e79e76d
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInitb09ed3b21b75518e597c3ad55e79e76d
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit1fb235bc74e35292d2b088681fade654
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit1fb235bc74e35292d2b088681fade654', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit1fb235bc74e35292d2b088681fade654', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit1fb235bc74e35292d2b088681fade654::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit1fb235bc74e35292d2b088681fade654::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire1fb235bc74e35292d2b088681fade654($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire1fb235bc74e35292d2b088681fade654($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
@@ -625,11 +625,11 @@ class ComposerStaticInitb09ed3b21b75518e597c3ad55e79e76d
|
|
625 |
public static function getInitializer(ClassLoader $loader)
|
626 |
{
|
627 |
return \Closure::bind(function () use ($loader) {
|
628 |
-
$loader->prefixLengthsPsr4 =
|
629 |
-
$loader->prefixDirsPsr4 =
|
630 |
-
$loader->fallbackDirsPsr4 =
|
631 |
-
$loader->prefixesPsr0 =
|
632 |
-
$loader->classMap =
|
633 |
|
634 |
}, null, ClassLoader::class);
|
635 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit1fb235bc74e35292d2b088681fade654
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
625 |
public static function getInitializer(ClassLoader $loader)
|
626 |
{
|
627 |
return \Closure::bind(function () use ($loader) {
|
628 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit1fb235bc74e35292d2b088681fade654::$prefixLengthsPsr4;
|
629 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit1fb235bc74e35292d2b088681fade654::$prefixDirsPsr4;
|
630 |
+
$loader->fallbackDirsPsr4 = ComposerStaticInit1fb235bc74e35292d2b088681fade654::$fallbackDirsPsr4;
|
631 |
+
$loader->prefixesPsr0 = ComposerStaticInit1fb235bc74e35292d2b088681fade654::$prefixesPsr0;
|
632 |
+
$loader->classMap = ComposerStaticInit1fb235bc74e35292d2b088681fade654::$classMap;
|
633 |
|
634 |
}, null, ClassLoader::class);
|
635 |
}
|
vendor/composer/installed.json
CHANGED
@@ -447,30 +447,30 @@
|
|
447 |
},
|
448 |
{
|
449 |
"name": "upstatement/routes",
|
450 |
-
"version": "0.
|
451 |
-
"version_normalized": "0.
|
452 |
"source": {
|
453 |
"type": "git",
|
454 |
"url": "https://github.com/Upstatement/routes.git",
|
455 |
-
"reference": "
|
456 |
},
|
457 |
"dist": {
|
458 |
"type": "zip",
|
459 |
-
"url": "https://api.github.com/repos/Upstatement/routes/zipball/
|
460 |
-
"reference": "
|
461 |
"shasum": ""
|
462 |
},
|
463 |
"require": {
|
464 |
"altorouter/altorouter": "^2.0.2",
|
465 |
-
"composer/installers": "
|
466 |
-
"php": ">=5.6.0"
|
467 |
},
|
468 |
"require-dev": {
|
469 |
"phpunit/phpunit": "5.7.16",
|
470 |
"satooshi/php-coveralls": "*",
|
471 |
"wp-cli/wp-cli": "*"
|
472 |
},
|
473 |
-
"time": "
|
474 |
"type": "library",
|
475 |
"installation-source": "dist",
|
476 |
"autoload": {
|
447 |
},
|
448 |
{
|
449 |
"name": "upstatement/routes",
|
450 |
+
"version": "0.9.1",
|
451 |
+
"version_normalized": "0.9.1.0",
|
452 |
"source": {
|
453 |
"type": "git",
|
454 |
"url": "https://github.com/Upstatement/routes.git",
|
455 |
+
"reference": "cac3c844ab824e4039fd26edbea5402415aa6d0a"
|
456 |
},
|
457 |
"dist": {
|
458 |
"type": "zip",
|
459 |
+
"url": "https://api.github.com/repos/Upstatement/routes/zipball/cac3c844ab824e4039fd26edbea5402415aa6d0a",
|
460 |
+
"reference": "cac3c844ab824e4039fd26edbea5402415aa6d0a",
|
461 |
"shasum": ""
|
462 |
},
|
463 |
"require": {
|
464 |
"altorouter/altorouter": "^2.0.2",
|
465 |
+
"composer/installers": "^1.0 || ^2.0",
|
466 |
+
"php": ">=5.6.0|7.*"
|
467 |
},
|
468 |
"require-dev": {
|
469 |
"phpunit/phpunit": "5.7.16",
|
470 |
"satooshi/php-coveralls": "*",
|
471 |
"wp-cli/wp-cli": "*"
|
472 |
},
|
473 |
+
"time": "2022-06-22T19:53:51+00:00",
|
474 |
"type": "library",
|
475 |
"installation-source": "dist",
|
476 |
"autoload": {
|
vendor/composer/installed.php
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
-
'pretty_version' => 'dev
|
5 |
-
'version' => 'dev
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
-
'reference' => '
|
10 |
'name' => 'timber/timber',
|
11 |
),
|
12 |
'versions' =>
|
@@ -54,12 +54,12 @@
|
|
54 |
),
|
55 |
'timber/timber' =>
|
56 |
array (
|
57 |
-
'pretty_version' => 'dev
|
58 |
-
'version' => 'dev
|
59 |
'aliases' =>
|
60 |
array (
|
61 |
),
|
62 |
-
'reference' => '
|
63 |
),
|
64 |
'twig/cache-extension' =>
|
65 |
array (
|
@@ -81,12 +81,12 @@
|
|
81 |
),
|
82 |
'upstatement/routes' =>
|
83 |
array (
|
84 |
-
'pretty_version' => '0.
|
85 |
-
'version' => '0.
|
86 |
'aliases' =>
|
87 |
array (
|
88 |
),
|
89 |
-
'reference' => '
|
90 |
),
|
91 |
),
|
92 |
);
|
1 |
<?php return array (
|
2 |
'root' =>
|
3 |
array (
|
4 |
+
'pretty_version' => '1.20.0.x-dev',
|
5 |
+
'version' => '1.20.0.9999999-dev',
|
6 |
'aliases' =>
|
7 |
array (
|
8 |
),
|
9 |
+
'reference' => '3ac8c7629656009b9e0d6d9e4ccda202aad3b8e0',
|
10 |
'name' => 'timber/timber',
|
11 |
),
|
12 |
'versions' =>
|
54 |
),
|
55 |
'timber/timber' =>
|
56 |
array (
|
57 |
+
'pretty_version' => '1.20.0.x-dev',
|
58 |
+
'version' => '1.20.0.9999999-dev',
|
59 |
'aliases' =>
|
60 |
array (
|
61 |
),
|
62 |
+
'reference' => '3ac8c7629656009b9e0d6d9e4ccda202aad3b8e0',
|
63 |
),
|
64 |
'twig/cache-extension' =>
|
65 |
array (
|
81 |
),
|
82 |
'upstatement/routes' =>
|
83 |
array (
|
84 |
+
'pretty_version' => '0.9.1',
|
85 |
+
'version' => '0.9.1.0',
|
86 |
'aliases' =>
|
87 |
array (
|
88 |
),
|
89 |
+
'reference' => 'cac3c844ab824e4039fd26edbea5402415aa6d0a',
|
90 |
),
|
91 |
),
|
92 |
);
|
vendor/upstatement/routes/.travis.yml
CHANGED
@@ -7,18 +7,12 @@ services: mysql
|
|
7 |
language: php
|
8 |
|
9 |
php:
|
10 |
-
- 5.6.
|
11 |
-
- 7.
|
12 |
|
13 |
env:
|
14 |
- WP_VERSION=latest WP_MULTISITE=0
|
15 |
- WP_VERSION=latest WP_MULTISITE=1
|
16 |
-
- WP_VERSION=4.7.3 WP_MULTISITE=0
|
17 |
-
|
18 |
-
matrix:
|
19 |
-
exclude:
|
20 |
-
- php: 7.3
|
21 |
-
env: WP_VERSION=4.7.3 WP_MULTISITE=0
|
22 |
|
23 |
before_script:
|
24 |
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
|
7 |
language: php
|
8 |
|
9 |
php:
|
10 |
+
- 5.6.40
|
11 |
+
- 7.4
|
12 |
|
13 |
env:
|
14 |
- WP_VERSION=latest WP_MULTISITE=0
|
15 |
- WP_VERSION=latest WP_MULTISITE=1
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
before_script:
|
18 |
- bash bin/install-wp-tests.sh wordpress_test root '' localhost $WP_VERSION
|
vendor/upstatement/routes/Routes.php
CHANGED
@@ -131,7 +131,7 @@ class Routes {
|
|
131 |
}
|
132 |
|
133 |
if ($query) {
|
134 |
-
add_action('
|
135 |
global $wp;
|
136 |
if ( is_callable($query) )
|
137 |
$query = call_user_func($query);
|
131 |
}
|
132 |
|
133 |
if ($query) {
|
134 |
+
add_action('parse_request', function() use ($query) {
|
135 |
global $wp;
|
136 |
if ( is_callable($query) )
|
137 |
$query = call_user_func($query);
|
vendor/upstatement/routes/composer.json
CHANGED
@@ -22,9 +22,9 @@
|
|
22 |
"source": "https://github.com/Upstatement/routes"
|
23 |
},
|
24 |
"require": {
|
25 |
-
"php": ">=5.6.0",
|
26 |
"altorouter/altorouter": "^2.0.2",
|
27 |
-
"composer/installers": "
|
28 |
},
|
29 |
"require-dev": {
|
30 |
"phpunit/phpunit": "5.7.16",
|
22 |
"source": "https://github.com/Upstatement/routes"
|
23 |
},
|
24 |
"require": {
|
25 |
+
"php": ">=5.6.0|7.*",
|
26 |
"altorouter/altorouter": "^2.0.2",
|
27 |
+
"composer/installers": "^1.0 || ^2.0"
|
28 |
},
|
29 |
"require-dev": {
|
30 |
"phpunit/phpunit": "5.7.16",
|