Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.21 #2013

Merged
merged 113 commits into from
Mar 19, 2024
Merged

Version 2.21 #2013

merged 113 commits into from
Mar 19, 2024

Conversation

zackkatz
Copy link
Member

@zackkatz zackkatz commented Mar 18, 2024

This release enhances security, introduces support for LifterLMS, adds a new CSV/TSV export widget to the View editor along with the option to add Gravity Flow fields to the Search Bar, addresses PHP 8.2 deprecation notices, fixes a conflict with BuddyBoss Platform, and improves performance with updates to essential components.

🚀 Added

  • A View editor widget to export entries in CSV or TSV formats.
  • Support for SVG images.
  • Support for Gravity Flow's "Workflow User" and "Workflow Multi-User" fields inside the Search Bar.
  • Integration with LifterLMS that allows embedding Views inside Student Dashboards.
  • Notice to inform administrators that an embedded View was moved to "trash" and an option to restore it.
  • Click-to-copy shortcode functionality in the View editor and when listing existing Views.

🐛 Fixed

  • PHP 8.2 deprecation notices.
  • Fields linked to single entry layouts are now exported as plain text values, not hyperlinks, in CSV/TSV files.
  • Issue preventing the saving of pages/posts with GravityView Gutenberg blocks when BuddyBoss Platform is active.

🔐 Security

  • Enhanced security by adding a secret attribute to shortcodes and blocks connected to Views.

🔧 Updated

  • Foundation to version 1.2.11.
    • GravityKit product updates are now showing on the Plugins page.
    • Database options that are no longer used are now automatically removed.

Developer Updates:

  • Added: gk/gravityview/widget/search/clear-button/params filter to modify the parameters of the Clear button in the search widget.

zackkatz and others added 30 commits July 5, 2020 23:46
- Views were only visible when in the trash when they were embedded via shortcode or entries were embedded via oEmbed.
- Only show "restore View" if the user has the ability required by WordPress to `untrash` (`delete_post`).
- Add a confirmation message to make sure, since this is a constructive action.

Resolves #1382
Even before adding this setting, the Lifter settings had to be saved twice
Using the shortcode fixes the CSS issue reported by Casey.
The single entry wasn't rendering because it relied on an endpoint on top of an endpoint.

There were two ways to tackle this:

1. Try and register the rewrite endpoint. I started down this path using the `llms_get_endpoints` filter, considered adding extra `add_rewrite_endpoint()` calls to try and get this working.

2 Disable permalinks when rendering the View so that the entry endpoint would instead be rendered as ?entry=123

I chose number 2.

I could have also chosen to modify the \GV\Entry::get_permalink() code to add a filter that would allow disabling permalinks, but I didn't feel like modifying core plugin functionality for now.
This makes sure it's translatable and easy to find all instances of the `my-forms` default.
It was always thinking that permalink_structure was empty, since…we added a filter that makes it empty!
doekenorg and others added 29 commits March 13, 2024 16:03
@crbdev This should fix the CSS not printing. Good catch.
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.5 to 1.15.6.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](follow-redirects/follow-redirects@v1.15.5...v1.15.6)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
- [x] Add `secret` to short code use
- [x] Add copy option to short code field
- [x] Make copy popup accessible
- [x] Add `secret` to view block
- [x] Test `gventry` tag short code.
- [x] Add secret to entry block

This PR fixes the Security issue of enumerating on views based on their
ID.

- It adds a setting to enable this for a view, with the default for new
views being set to `on`

![image](https://github.com/GravityKit/GravityView/assets/529515/f3b3876e-0b75-4dd3-8ef5-67c41b156cfc)

- It the possibility to copy the short code instead of just selecting
it.

![copied](https://github.com/GravityKit/GravityView/assets/529515/49fe4ef0-6015-486d-9a56-79a70e427864)

- It also fixes a bug where the GravityView capabilities for a role were
overwritten on every admin request.
This PR addresses #1891. 

It adds a CSV (or TSV) download link widget with a label and option to
wrap inside a `<p>` tag.

<img width="462" alt="Scherm­afbeelding 2024-02-26 om 16 19 01"
src="https://github.com/GravityKit/GravityView/assets/529515/5f563bab-57a2-41b2-9e85-0fecb436335c">
<img width="800" alt="Scherm­afbeelding 2024-02-26 om 16 19 15"
src="https://github.com/GravityKit/GravityView/assets/529515/9bba97aa-f8c1-49e5-adae-9436fbc3a770">
<img width="348" alt="Scherm­afbeelding 2024-02-26 om 16 19 23"
src="https://github.com/GravityKit/GravityView/assets/529515/bdec087c-0427-40cb-9114-1a1707927034">

![disabled](https://github.com/GravityKit/GravityView/assets/529515/cb62a001-d07a-4f37-8b0c-9d4bdc04a209)
…berg (#2012)

Bumps
[follow-redirects](https://github.com/follow-redirects/follow-redirects)
from 1.15.5 to 1.15.6.
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/follow-redirects/follow-redirects/commit/35a517c5861d79dc8bff7db8626013d20b711b06"><code>35a517c</code></a>
Release version 1.15.6 of the npm package.</li>
<li><a
href="https://github.com/follow-redirects/follow-redirects/commit/c4f847f85176991f95ab9c88af63b1294de8649b"><code>c4f847f</code></a>
Drop Proxy-Authorization across hosts.</li>
<li><a
href="https://github.com/follow-redirects/follow-redirects/commit/8526b4a1b2ab3a2e4044299377df623a661caa76"><code>8526b4a</code></a>
Use GitHub for disclosure.</li>
<li>See full diff in <a
href="https://github.com/follow-redirects/follow-redirects/compare/v1.15.5...v1.15.6">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=follow-redirects&package-manager=npm_and_yarn&previous-version=1.15.5&new-version=1.15.6)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/GravityKit/GravityView/network/alerts).

</details>
- Views were only visible when in the trash when they were embedded via
shortcode or entries were embedded via oEmbed.
- Only show "restore View" if the user has the ability required by
WordPress to `untrash` (`delete_post`).
- Add a confirmation message to make sure, since this is a constructive
action.

Resolves #1382
This prevents other plugins, such as BuddyBoss Platform, from
output content that breaks JSON response (#2011).
Offending classes/files:

includes/widgets/search-widget/class-search-widget.php:1552
includes/widgets/search-widget/class-search-widget.php:1554
includes/widgets/search-widget/class-search-widget.php:1556
includes/widgets/search-widget/class-search-widget.php:1559
includes/widgets/search-widget/class-search-widget.php:1563
includes/widgets/search-widget/class-search-widget.php:1565
includes/widgets/search-widget/templates/widget-search.php:40
@mrcasual mrcasual merged commit df1a8dc into main Mar 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants