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

Pods 3.2.8 #7347

Open
wants to merge 60 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
41333b9
Set version to 3.2.8-a-1
sc0ttkclark Aug 31, 2024
e93f06c
Support enabling or disabling wpautop for certain kinds of block content
sc0ttkclark Aug 31, 2024
cae1001
Add fallback for `$pod->field()` and the `find` argument in case the …
sc0ttkclark Aug 31, 2024
8b99c43
Disable phpcs rule for brackets and phpstan fix
sc0ttkclark Aug 31, 2024
76075de
Disable phpcs rule
sc0ttkclark Aug 31, 2024
194a0f6
Update TribalScents to StellarWP
sc0ttkclark Aug 31, 2024
6dee8cc
Update phpcs rules
sc0ttkclark Aug 31, 2024
b4f95c0
Update rules
sc0ttkclark Aug 31, 2024
e449c2f
Update phpcs
sc0ttkclark Aug 31, 2024
8875680
Exclude rules
sc0ttkclark Aug 31, 2024
06183dd
Update rules
sc0ttkclark Aug 31, 2024
c767aa3
Fix phpcs
sc0ttkclark Aug 31, 2024
49cabbf
Update reference
sc0ttkclark Aug 31, 2024
523481f
Update jest
sc0ttkclark Aug 31, 2024
164b45d
Try updating enzyme testing adapter
sc0ttkclark Aug 31, 2024
9ef034a
Install the enzyme adapter
sc0ttkclark Aug 31, 2024
0f36814
Update enzyme adapter
sc0ttkclark Aug 31, 2024
d385823
Update adapter version
sc0ttkclark Sep 1, 2024
84629bd
Update connection description
sc0ttkclark Sep 2, 2024
a3d2fdc
Add pods- prefix to the config paths supported
sc0ttkclark Sep 3, 2024
77aa5e1
Add pods/templates/$template_name to the list of Pods templates hiera…
sc0ttkclark Sep 3, 2024
08b47be
Abstract the default template handling for Pod Pages and ensure they …
sc0ttkclark Sep 3, 2024
1926f14
Update template list
sc0ttkclark Sep 5, 2024
add2f75
Update hook for default templates list
sc0ttkclark Sep 5, 2024
682f5d9
Replace PNG arrows with CSS only arrows and run SCSS (#7161)
heybran Sep 9, 2023
46939b4
Update awe new pods screen HTML structure (#7161)
heybran Sep 29, 2023
091fca8
Fix general paddings and add new grid layout (#7161)
heybran Sep 29, 2023
1467a9d
update add new pods screen (#7161)
heybran Dec 9, 2023
df5f5b3
build css output (#7161)
heybran Dec 9, 2023
3ea326d
remove commented out codes (#7161)
heybran Dec 9, 2023
2b4f0cd
Rebuild assets
sc0ttkclark Sep 7, 2024
99a2a69
More UX updates
sc0ttkclark Sep 8, 2024
28ada55
Tweak heading text
sc0ttkclark Sep 8, 2024
163b438
Remove extra padding
sc0ttkclark Sep 9, 2024
da75987
More CSS work for Add New Pod screen
sc0ttkclark Sep 10, 2024
61e9903
Disable more post types
sc0ttkclark Sep 10, 2024
6c3f61f
Update wizard handling for quick actions
sc0ttkclark Sep 10, 2024
acb09ab
Add taxonomy exclusion
sc0ttkclark Sep 10, 2024
2cc4c83
Feature/7161 add new pod screen UI enhancement (#7230)
sc0ttkclark Sep 10, 2024
cbd2c24
Auto rebuild assets
sc0ttkclark Sep 10, 2024
65ff349
Update padding for wizard
sc0ttkclark Sep 10, 2024
6ccfcd8
Revamp wizard screens across all components
sc0ttkclark Sep 12, 2024
9b36ded
Auto rebuild assets
sc0ttkclark Sep 12, 2024
be8e86d
Update artifact
sc0ttkclark Sep 12, 2024
b4b5752
More fixes for slug sanitization
sc0ttkclark Sep 13, 2024
9e46547
Fixes for phpstan
sc0ttkclark Sep 13, 2024
95e15fb
Simplify slug logic
sc0ttkclark Sep 14, 2024
18c0caa
Fix HTML formatting
sc0ttkclark Sep 14, 2024
83016f5
More phpcs fixes
sc0ttkclark Sep 14, 2024
e2912e0
Add warnings/errors about PHP in Pod Pages and Templates
sc0ttkclark Sep 27, 2024
86ef953
Add more notices when using precode or page code
sc0ttkclark Sep 28, 2024
0d52502
Update notices for Pod Pages and add another inline notice for Pod Te…
sc0ttkclark Sep 29, 2024
7e1850a
Update escaping
sc0ttkclark Sep 29, 2024
8cddc72
Fix link and text for switching to file-based pod templates
sc0ttkclark Sep 29, 2024
17972ea
Abstract more of the page/template PHP path handling and introduce a …
sc0ttkclark Oct 1, 2024
977d854
Handle cleanups
sc0ttkclark Oct 1, 2024
099ba47
More code exporting tweaks
sc0ttkclark Oct 1, 2024
dc72c71
Maybe process magic tags for file-based templates
sc0ttkclark Oct 1, 2024
cc321eb
Update notices with link to use Migrate PHP component
sc0ttkclark Oct 3, 2024
8a9a3dc
More updates for PHP file-based template migration and support for Po…
sc0ttkclark Oct 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<arg name="colors"/>
<arg name="report" value="full,summary"/>

<rule ref="TribalScents"/>
<rule ref="StellarWP"/>
<rule ref="WordPress-VIP-Go"/>
<rule ref="WordPress">
<exclude name="WordPress.Files.FileName"/>
Expand Down Expand Up @@ -49,4 +49,12 @@
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedComparison"/>
<exclude name="Squiz.PHP.DisallowComparisonAssignment.AssignedBool"/>
</rule>

<rule ref="PEAR.Functions.FunctionCallSignature">
<properties>
<property name="requiredSpacesAfterOpen" value="0"/>
<property name="requiredSpacesBeforeClose" value="0"/>
<property name="allowMultipleArguments" value="false"/>
</properties>
</rule>
</ruleset>
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpunit/phpunit": "^6.5",
"stellarwp/coding-standards": "dev-main",
"spatie/phpunit-snapshot-assertions": "^1.4.2",
"szepeviktor/phpstan-wordpress": "*",
"the-events-calendar/coding-standards": "dev-main",
"wp-cli/wp-cli": "2.*",
"wp-coding-standards/wpcs": "^3.0.1"
"wp-coding-standards/wpcs": "^3.1.0"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down
16 changes: 15 additions & 1 deletion includes/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -2186,12 +2186,26 @@ function pods_shortcode_run( $tags, $content = null, $blog_is_switched = false,
pods_debug_log_data( [ 'field_name' => $tags['related_field'], 'sql' => $params ], 'shortcode-field-params', __METHOD__, __LINE__ );

// Override the Pods object.
$pod = $pod->field( [
$pod_check = $pod->field( [
'name' => $tags['related_field'],
'output' => 'find',
'params' => $params,
] );

if ( ! $pod_check instanceof Pods ) {
$related_field = $pod->pod_data->get_field( $tags['related_field'] );

if ( $related_field instanceof Field ) {
$related_object = $related_field->get_related_object();

if ( $related_object instanceof Pod ) {
$pod_check = pods( $related_object->get_name() );
}
}
}

$pod = $pod_check;

if ( ! $pod instanceof Pods ) {
return pods_message(
sprintf(
Expand Down
4 changes: 2 additions & 2 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Pods - Custom Content Types and Fields
* Plugin URI: https://pods.io/
* Description: Pods is a framework for creating, managing, and deploying customized content types and fields
* Version: 3.2.7
* Version: 3.2.8-a-1
* Author: Pods Framework Team
* Author URI: https://pods.io/about/
* Text Domain: pods
Expand Down Expand Up @@ -43,7 +43,7 @@
add_action( 'init', 'pods_deactivate_pods_ui' );
} else {
// Current version.
define( 'PODS_VERSION', '3.2.7' );
define( 'PODS_VERSION', '3.2.8-a-1' );

// Current database version, this is the last version the database changed.
define( 'PODS_DB_VERSION', '2.3.5' );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pods",
"version": "3.2.7",
"version": "3.2.8-a-1",
"description": "Pods is a development framework for creating, extending, managing, and deploying customized content types in WordPress.",
"author": "Pods Foundation, Inc",
"homepage": "https://pods.io/",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: pods, custom post types, custom taxonomies, content types, custom fields
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.2
Stable tag: 3.2.7
Stable tag: 3.2.8-a-1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down
38 changes: 36 additions & 2 deletions src/Pods/Blocks/Types/Base.php

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

5 changes: 1 addition & 4 deletions src/Pods/Blocks/Types/Field.php

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

4 changes: 4 additions & 0 deletions src/Pods/Blocks/Types/Item_List.php

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

4 changes: 4 additions & 0 deletions src/Pods/Blocks/Types/Related_Item_List.php

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

Loading