Skip to content

Commit

Permalink
Merge pull request #120 from fapi-cz/FAPI-MEMBER-2.2.11-fix-cpt-error
Browse files Browse the repository at this point in the history
2.2.11 - Fixed CPT error
  • Loading branch information
Marek-Klein authored Dec 10, 2024
2 parents 07aa0e3 + 4851698 commit 68f4741
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 10 deletions.
4 changes: 2 additions & 2 deletions fapi-member.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: FAPI Member
* Plugin URI: https://fapi.cz/
* Description: Plugin FAPI pro jednoduchou správu členských sekcí na webu.
* Version: 2.2.10
* Version: 2.2.11
* Requires at least: 5.9
* Requires PHP: 8.1
* Author: FAPI Business s.r.o.
Expand All @@ -29,7 +29,7 @@
require __DIR__ . '/src/Elementor/fapi-member.php';
require __DIR__ . '/src/Utils/functions.php';

define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.10');
define('FAPI_MEMBER_PLUGIN_VERSION', '2.2.11');

$FapiPlugin = new FapiMemberPlugin();

Expand Down
1 change: 1 addition & 0 deletions multiple-blocks/build/block-extender.asset 2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-element'), 'version' => 'bebec06c7f65bc27db46');
1 change: 1 addition & 0 deletions multiple-blocks/build/fapi-form-block 2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions multiple-blocks/build/fapi-form-block.asset 2.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '17fa3174ed811013ec2e');
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 8.1
License: GPLv2 or later
Stable tag: 2.2.10
Stable tag: 2.2.11

Plugin FAPI pro jednoduchou správu členských sekcí na webu.

Expand All @@ -26,6 +26,9 @@ Ohodnotit tento plugin můžete na stránkách [WordPress](https://wordpress.org

== Changelog ==

= 2.2.11 =
* Fixed an UI error

= 2.2.10 =
* When user is redirected to a 'no access page' and then logs in, they are now redirected back to the page that they were intending to access (if they have access to it)

Expand Down
3 changes: 2 additions & 1 deletion src/Repository/PageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public function getAllPages($includingCpt = false): array
private function postsToPages(array $posts, array $cpts): array
{
$pages = [];

foreach ($posts as $post) {
$pages[] = new Page([
'id' => $post->ID,
Expand All @@ -79,7 +80,7 @@ private function postsToPages(array $posts, array $cpts): array
'id' => $cpt,
'title' => $cpt,
'type' => 'cpt',
'url' => wp_make_link_relative(get_permalink($cpt->ID)),
'url' => '',
]);
}

Expand Down
12 changes: 6 additions & 6 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<?php return array(
'root' => array(
'name' => 'fapi-cz/fapi-member',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => null,
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '30c6901d66a1b2cf16cc106de38560e6f2439972',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
'dev' => true,
),
'versions' => array(
'fapi-cz/fapi-member' => array(
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'reference' => null,
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '30c6901d66a1b2cf16cc106de38560e6f2439972',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down

0 comments on commit 68f4741

Please sign in to comment.