Extendify — Gutenberg Patterns and Templates - Version 0.11.1

Version Description

  • 2022-10-08 =
  • Fix a bug where page data wasn't loading
Download this release

Release Info

Developer extendify
Plugin Icon 128x128 Extendify — Gutenberg Patterns and Templates
Version 0.11.1
Comparing to
See all releases

Code changes from version 0.11.0 to 0.11.1

app/Assist/Controllers/AssistDataController.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Controls Pages
4
+ */
5
+
6
+ namespace Extendify\Assist\Controllers;
7
+
8
+ if (!defined('ABSPATH')) {
9
+ die('No direct access.');
10
+ }
11
+
12
+ /**
13
+ * The controller for plugin dependency checking, etc
14
+ */
15
+ class AssistDataController
16
+ {
17
+
18
+ /**
19
+ * Return pages created via Launch.
20
+ *
21
+ * @return \WP_REST_Response
22
+ */
23
+ public static function getLaunchPages()
24
+ {
25
+ $pages = \get_pages(['sort_column' => 'post_title']);
26
+ $pages = array_filter($pages, function ($page) {
27
+ $meta = \metadata_exists( 'post', $page->ID, 'made_with_extendify_launch' );
28
+ return $meta === true;
29
+ });
30
+
31
+ $data = array_map(function ($page) {
32
+ $page->permalink = \get_the_permalink($page->ID);
33
+ $path = \wp_parse_url($page->permalink)['path'];
34
+ $parseSiteUrl = \wp_parse_url(\get_site_url());
35
+ $page->url = $parseSiteUrl['scheme'] . '://' . $parseSiteUrl['host'] . $path;
36
+ $page->madeWithLaunch = true;
37
+ return $page;
38
+ }, $pages);
39
+
40
+ return new \WP_REST_Response([
41
+ 'success' => true,
42
+ 'data' => array_values($data),
43
+ ]);
44
+ }
45
+ }
extendify.php CHANGED
@@ -5,7 +5,7 @@
5
  * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: Extendify
7
  * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
8
- * Version: 0.11.0
9
  * License: GPL-2.0-or-later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: extendify
5
  * Plugin URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6
  * Author: Extendify
7
  * Author URI: https://extendify.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
8
+ * Version: 0.11.1
9
  * License: GPL-2.0-or-later
10
  * License URI: https://www.gnu.org/licenses/gpl-2.0.html
11
  * Text Domain: extendify
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: extendify, richtabor, kbat82, clubkert, arturgrabo
3
  Tags: templates, patterns, layouts, blocks, gutenberg
4
  Requires at least: 5.4
5
  Tested up to: 6.0
6
- Stable tag: 0.11.0
7
  Requires PHP: 5.6
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -124,6 +124,9 @@ Nope! Extendify imports lightweight block-based content that is served directly
124
 
125
  == Changelog ==
126
 
 
 
 
127
  = 0.11.0 - 2022-10-06 =
128
  - Fix issue with request headers
129
  - Update logic for admin page routing
3
  Tags: templates, patterns, layouts, blocks, gutenberg
4
  Requires at least: 5.4
5
  Tested up to: 6.0
6
+ Stable tag: 0.11.1
7
  Requires PHP: 5.6
8
  License: GPLv2
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
124
 
125
  == Changelog ==
126
 
127
+ = 0.11.1 - 2022-10-08 =
128
+ - Fix a bug where page data wasn't loading
129
+
130
  = 0.11.0 - 2022-10-06 =
131
  - Fix issue with request headers
132
  - Update logic for admin page routing
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit8544c08622507563b6e7bc7776a1f8d3::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInitfefed663b8bfec545285769e014a1afb::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit8544c08622507563b6e7bc7776a1f8d3
6
  {
7
  private static $loader;
8
 
@@ -22,15 +22,15 @@ class ComposerAutoloaderInit8544c08622507563b6e7bc7776a1f8d3
22
  return self::$loader;
23
  }
24
 
25
- spl_autoload_register(array('ComposerAutoloaderInit8544c08622507563b6e7bc7776a1f8d3', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
- spl_autoload_unregister(array('ComposerAutoloaderInit8544c08622507563b6e7bc7776a1f8d3', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
- call_user_func(\Composer\Autoload\ComposerStaticInit8544c08622507563b6e7bc7776a1f8d3::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInitfefed663b8bfec545285769e014a1afb
6
  {
7
  private static $loader;
8
 
22
  return self::$loader;
23
  }
24
 
25
+ spl_autoload_register(array('ComposerAutoloaderInitfefed663b8bfec545285769e014a1afb', 'loadClassLoader'), true, true);
26
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
27
+ spl_autoload_unregister(array('ComposerAutoloaderInitfefed663b8bfec545285769e014a1afb', 'loadClassLoader'));
28
 
29
  $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
30
  if ($useStaticLoader) {
31
  require_once __DIR__ . '/autoload_static.php';
32
 
33
+ call_user_func(\Composer\Autoload\ComposerStaticInitfefed663b8bfec545285769e014a1afb::getInitializer($loader));
34
  } else {
35
  $map = require __DIR__ . '/autoload_namespaces.php';
36
  foreach ($map as $namespace => $path) {
vendor/composer/autoload_static.php CHANGED
@@ -4,7 +4,7 @@
4
 
5
  namespace Composer\Autoload;
6
 
7
- class ComposerStaticInit8544c08622507563b6e7bc7776a1f8d3
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'E' =>
@@ -23,8 +23,8 @@ class ComposerStaticInit8544c08622507563b6e7bc7776a1f8d3
23
  public static function getInitializer(ClassLoader $loader)
24
  {
25
  return \Closure::bind(function () use ($loader) {
26
- $loader->prefixLengthsPsr4 = ComposerStaticInit8544c08622507563b6e7bc7776a1f8d3::$prefixLengthsPsr4;
27
- $loader->prefixDirsPsr4 = ComposerStaticInit8544c08622507563b6e7bc7776a1f8d3::$prefixDirsPsr4;
28
 
29
  }, null, ClassLoader::class);
30
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInitfefed663b8bfec545285769e014a1afb
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'E' =>
23
  public static function getInitializer(ClassLoader $loader)
24
  {
25
  return \Closure::bind(function () use ($loader) {
26
+ $loader->prefixLengthsPsr4 = ComposerStaticInitfefed663b8bfec545285769e014a1afb::$prefixLengthsPsr4;
27
+ $loader->prefixDirsPsr4 = ComposerStaticInitfefed663b8bfec545285769e014a1afb::$prefixDirsPsr4;
28
 
29
  }, null, ClassLoader::class);
30
  }