Changeset 3360657
- Timestamp:
- 09/12/2025 04:42:19 PM (6 months ago)
- Location:
- wp-connectr/trunk
- Files:
-
- 43 edited
-
changelog.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/PowerResource/Terms/Controller.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/ArgumentInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/ArgumentResolverInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/ArgumentResolverTrait.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/DefaultValueArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/DefaultValueInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/ArrayArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/BooleanArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/CallableArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/FloatArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/IntegerArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/ObjectArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/Literal/StringArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/LiteralArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/LiteralArgumentInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/ResolvableArgument.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Argument/ResolvableArgumentInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Container.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ContainerAwareInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ContainerAwareTrait.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Definition/Definition.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Definition/DefinitionAggregate.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Definition/DefinitionAggregateInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Definition/DefinitionInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/DefinitionContainerInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Exception/ContainerException.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Exception/NotFoundException.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Inflector/Inflector.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Inflector/InflectorAggregate.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Inflector/InflectorAggregateInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/Inflector/InflectorInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ReflectionContainer.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ServiceProvider/AbstractServiceProvider.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ServiceProvider/BootableServiceProviderInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregate.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php (modified) (1 diff)
-
vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderInterface.php (modified) (1 diff)
-
vendor_prefixed/psr/container/src/ContainerExceptionInterface.php (modified) (1 diff)
-
vendor_prefixed/psr/container/src/ContainerInterface.php (modified) (1 diff)
-
vendor_prefixed/psr/container/src/NotFoundExceptionInterface.php (modified) (1 diff)
-
wp-connectr.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-connectr/trunk/changelog.txt
r3358663 r3360657 1 1 *** Changelog *** 2 2 3 2025-09-12 - version 2.0.3 4 * Improved term creation to act as lightweight upsert - returns existing term instead of error when term already exists 5 3 6 2025-09-08 - version 2.0.2 4 * Enhanced enum value normalization with optional null support for better Power Automate compatibility7 * Improved handling of dropdown field values to better support empty/null options in Power Automate workflows 5 8 6 9 2025-06-26 - version 2.0.0 -
wp-connectr/trunk/readme.txt
r3358663 r3360657 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.2.0 8 Stable tag: 2.0. 28 Stable tag: 2.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 74 74 == Changelog == 75 75 76 2025-09-12 - version 2.0.3 77 * Improved term creation to act as lightweight upsert - returns existing term instead of error when term already exists 78 76 79 2025-09-08 - version 2.0.2 77 80 * Enhanced enum value normalization with optional null support for better Power Automate compatibility -
wp-connectr/trunk/src/PowerResource/Terms/Controller.php
r3173902 r3360657 52 52 ); 53 53 } 54 55 /** 56 * Creates a single term for a taxonomy. 57 * Acts as a lightweight upsert - if term already exists, returns the existing term instead of an error. 58 * 59 * @param WP_REST_Request $request Full details about the request. 60 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 61 */ 62 public function create_item( $request ) { 63 // Try to create the term using parent method 64 $response = parent::create_item( $request ); 65 66 // If we got a WP_Error and it's a term_exists error, handle it as upsert 67 if ( is_wp_error( $response ) ) { 68 $error_code = $response->get_error_code(); 69 70 if ( 'term_exists' === $error_code ) { 71 // Extract the existing term ID from the error data 72 $error_data = $response->get_error_data(); 73 $term_id = null; 74 75 if ( is_array( $error_data ) && isset( $error_data['term_id'] ) ) { 76 $term_id = $error_data['term_id']; 77 } elseif ( is_numeric( $error_data ) ) { 78 $term_id = $error_data; 79 } 80 81 if ( $term_id ) { 82 // Get the existing term and return it formatted 83 $term = get_term( $term_id, $this->taxonomy ); 84 85 if ( ! is_wp_error( $term ) && $term ) { 86 // Prepare the response using the existing term 87 $response = $this->prepare_item_for_response( $term, $request ); 88 $response = rest_ensure_response( $response ); 89 $response->set_status( 200 ); // Use 200 instead of 201 to indicate existing resource 90 91 // Add location header as if it was created 92 $base = sprintf( '%s/%s', $this->namespace, $this->rest_base ); 93 $response->header( 'Location', rest_url( trailingslashit( $base ) . $term->term_id ) ); 94 95 return $response; 96 } 97 } 98 } 99 } 100 101 return $response; 102 } 54 103 } -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/ArgumentInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/ArgumentResolverInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/ArgumentResolverTrait.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/DefaultValueArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/DefaultValueInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/ArrayArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/BooleanArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/CallableArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/FloatArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/IntegerArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/ObjectArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/Literal/StringArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/LiteralArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/LiteralArgumentInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/ResolvableArgument.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Argument/ResolvableArgumentInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Container.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ContainerAwareInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ContainerAwareTrait.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Definition/Definition.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Definition/DefinitionAggregate.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Definition/DefinitionAggregateInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Definition/DefinitionInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/DefinitionContainerInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Exception/ContainerException.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Exception/NotFoundException.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Inflector/Inflector.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Inflector/InflectorAggregate.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Inflector/InflectorAggregateInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/Inflector/InflectorInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ReflectionContainer.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ServiceProvider/AbstractServiceProvider.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ServiceProvider/BootableServiceProviderInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregate.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/league/container/src/ServiceProvider/ServiceProviderInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/psr/container/src/ContainerExceptionInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/psr/container/src/ContainerInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/vendor_prefixed/psr/container/src/NotFoundExceptionInterface.php
r3358663 r3360657 3 3 * @license MIT 4 4 * 5 * Modified by reenhanced on 09-September-2025 using {@see https://github.com/BrianHenryIE/strauss}.5 * Modified by reenhanced on 12-September-2025 using {@see https://github.com/BrianHenryIE/strauss}. 6 6 */ 7 7 -
wp-connectr/trunk/wp-connectr.php
r3358663 r3360657 27 27 * Plugin URI: https://www.reenhanced.com/products/wordpress-connector/ 28 28 * Description: Deeply integrates WordPress with Microsoft Power Automate. Microsoft Certified. Easily connect your site to Microsoft SharePoint, Dynamics, Teams or over 1000 other services. 29 * Version: 2.0. 229 * Version: 2.0.3 30 30 * Author: Reenhanced LLC 31 31 * License: GPL-2.0+ … … 34 34 * 35 35 */ 36 define( 'WP_CONNECTR_VERSION', '2.0. 2' );36 define( 'WP_CONNECTR_VERSION', '2.0.3' ); 37 37 38 38 /*
Note: See TracChangeset
for help on using the changeset viewer.