Changeset 3057077
- Timestamp:
- 03/22/2024 08:59:12 PM (2 years ago)
- Location:
- tangible-loops-and-logic
- Files:
-
- 6 deleted
- 26 edited
- 1 copied
-
tags/4.1.3 (copied) (copied from tangible-loops-and-logic/trunk)
-
tags/4.1.3/.wp-env.json (deleted)
-
tags/4.1.3/artifacts (deleted)
-
tags/4.1.3/playwright.config.js (deleted)
-
tags/4.1.3/readme.txt (modified) (2 diffs)
-
tags/4.1.3/tangible-loops-and-logic.php (modified) (2 diffs)
-
tags/4.1.3/vendor/composer/installed.json (modified) (2 diffs)
-
tags/4.1.3/vendor/composer/installed.php (modified) (3 diffs)
-
tags/4.1.3/vendor/tangible/template-system/admin/system.php (modified) (1 diff)
-
tags/4.1.3/vendor/tangible/template-system/admin/template-post/save.php (modified) (2 diffs)
-
tags/4.1.3/vendor/tangible/template-system/core.php (modified) (1 diff)
-
tags/4.1.3/vendor/tangible/template-system/framework/format/index.php (modified) (3 diffs)
-
tags/4.1.3/vendor/tangible/template-system/framework/index.php (modified) (1 diff)
-
tags/4.1.3/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php (modified) (2 diffs)
-
tags/4.1.3/vendor/tangible/template-system/loop/types/taxonomy-term/index.php (modified) (1 diff)
-
tags/4.1.3/vendor/tangible/template-system/loop/utils/args.php (modified) (1 diff)
-
tags/4.1.3/vendor/tangible/template-system/plugin.php (modified) (1 diff)
-
trunk/.wp-env.json (deleted)
-
trunk/artifacts (deleted)
-
trunk/playwright.config.js (deleted)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tangible-loops-and-logic.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (2 diffs)
-
trunk/vendor/composer/installed.php (modified) (3 diffs)
-
trunk/vendor/tangible/template-system/admin/system.php (modified) (1 diff)
-
trunk/vendor/tangible/template-system/admin/template-post/save.php (modified) (2 diffs)
-
trunk/vendor/tangible/template-system/core.php (modified) (1 diff)
-
trunk/vendor/tangible/template-system/framework/format/index.php (modified) (3 diffs)
-
trunk/vendor/tangible/template-system/framework/index.php (modified) (1 diff)
-
trunk/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php (modified) (2 diffs)
-
trunk/vendor/tangible/template-system/loop/types/taxonomy-term/index.php (modified) (1 diff)
-
trunk/vendor/tangible/template-system/loop/utils/args.php (modified) (1 diff)
-
trunk/vendor/tangible/template-system/plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tangible-loops-and-logic/tags/4.1.3/readme.txt
r3051819 r3057077 1 1 === Loops & Logic === 2 Stable tag: 4.1. 22 Stable tag: 4.1.3 3 3 Requires at least: 6.0 4 4 Tested up to: 6.5 … … 151 151 152 152 == Changelog == 153 154 = 4.1.3 = 155 156 Release Date: 2024-03-22 157 158 - ACF Date/Time field: Add tests for field comparison with timestamps 159 - Base loop: Improve casting query parameter to array when non-string value is passed 160 - Beaver integration: Ensure Template module restores current post in context 161 - Taxonomy term loop: Handle case when include/exclude is given as integer ID 162 - Template save and format slugify: Use remove_accents() to convert all accent characters to ASCII characters, before creating slug with sanitize_title_with_dashes() 153 163 154 164 = 4.1.2 = -
tangible-loops-and-logic/tags/4.1.3/tangible-loops-and-logic.php
r3051819 r3057077 4 4 * Plugin URI: https://loopsandlogic.com/ 5 5 * Description: A template system with content type loops and conditions. 6 * Version: 4.1. 26 * Version: 4.1.3 7 7 * Author: Team Tangible 8 8 * Author URI: https://teamtangible.com … … 10 10 */ 11 11 12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1. 2' );12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.3' ); 13 13 14 14 require_once __DIR__ . '/vendor/tangible/template-system/index.php'; -
tangible-loops-and-logic/tags/4.1.3/vendor/composer/installed.json
r3051819 r3057077 8 8 "type": "git", 9 9 "url": "https://github.com/TangibleInc/template-system.git", 10 "reference": " a4a57dd961b6316574f444d73c02ca633c7df59e"10 "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/ a4a57dd961b6316574f444d73c02ca633c7df59e",15 "reference": " a4a57dd961b6316574f444d73c02ca633c7df59e",14 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/c6fe960f08db57756f2fa399e43af97b05c794e6", 15 "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6", 16 16 "shasum": "" 17 17 }, … … 20 20 "yoast/phpunit-polyfills": "^1" 21 21 }, 22 "time": "2024-03- 15T15:53:34+00:00",22 "time": "2024-03-22T20:26:13+00:00", 23 23 "default-branch": true, 24 24 "type": "library", -
tangible-loops-and-logic/tags/4.1.3/vendor/composer/installed.php
r3051819 r3057077 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' d901b4160973cc898c9110b8499b2e1f6a56918c',6 'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' d901b4160973cc898c9110b8499b2e1f6a56918c',16 'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' a4a57dd961b6316574f444d73c02ca633c7df59e',25 'reference' => 'c6fe960f08db57756f2fa399e43af97b05c794e6', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../tangible/template-system', -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/admin/system.php
r3051819 r3057077 14 14 15 15 public $name = 'tangible_template_system'; 16 public $version = '202403 15';16 public $version = '20240322'; 17 17 18 18 public $url; -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/admin/template-post/save.php
r3017133 r3057077 88 88 $post = get_post( $result ); 89 89 90 $post_name = sanitize_title_with_dashes( 90 $post_name = sanitize_title_with_dashes(remove_accents( 91 91 ! empty( $name ) ? $name 92 : ( ! empty( $title ) ? $title : 'no-title' ) , '', 'save'93 ) ;92 : ( ! empty( $title ) ? $title : 'no-title' ) 93 ), '', 'save'); 94 94 95 95 $plugin->save_unique_template_post_slug( $post, $post_name ); … … 116 116 // Update template slug 117 117 118 $post_name = sanitize_title_with_dashes( ! empty( $_POST['name'] ) ? $_POST['name'] 119 : ( ! empty( $post->post_title ) ? $post->post_title 120 : 'no-title' 121 ), '', 'save' 122 ); 118 $post_name = sanitize_title_with_dashes(remove_accents( 119 ! empty( $_POST['name'] ) ? $_POST['name'] 120 : ( ! empty( $post->post_title ) ? $post->post_title 121 : 'no-title' 122 ) 123 ), '', 'save'); 123 124 124 125 $plugin->save_unique_template_post_slug( $post, $post_name ); -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/core.php
r3051819 r3057077 23 23 24 24 template_system::$state = (object) [ 25 'version' => '202403 15', // Automatically updated with npm run version25 'version' => '20240322', // Automatically updated with npm run version 26 26 'path' => __DIR__, 27 27 'url' => untrailingslashit( plugins_url( '/', __FILE__ ) ), -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/framework/format/index.php
r3049893 r3057077 111 111 */ 112 112 function slugify($string) { 113 return sanitize_title_with_dashes( $string, null, 'save');113 return sanitize_title_with_dashes(remove_accents($string), null, 'save'); 114 114 }; 115 115 … … 118 118 */ 119 119 function multiple_values($value) { 120 121 if (is_array($value)) return $value; 122 if (!is_string($value)) return [$value]; 123 120 124 if (isset($value[0]) && $value[0]==='[') { 121 125 try { … … 127 131 } 128 132 } 133 129 134 $values = array_map('trim', explode(',', $value)); 135 130 136 return $values; 131 137 }; -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/framework/index.php
r3051819 r3057077 17 17 18 18 public $name = 'tangible_framework'; 19 public $version = '202403 15';19 public $version = '20240322'; 20 20 21 21 function __construct() { -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php
r3017133 r3057077 21 21 $html = $template_system->html; 22 22 23 global $post; 24 25 $previous_post = $post; 26 23 27 /** 24 28 * Ensure default loop context is set to current post … … 28 32 $loop->push_current_post_context(); 29 33 30 if ( $settings->toggle_type == 'editor' ) {34 if ( $settings->toggle_type == 'editor' ) { 31 35 32 echo $html->render_with_catch_exit( $settings->html );36 echo $html->render_with_catch_exit( $settings->html ); 33 37 34 } elseif ( ! empty( $settings->saved_template ) ) {38 } elseif ( ! empty( $settings->saved_template ) ) { 35 39 36 $post = get_post( $settings->saved_template );40 $template_post = get_post( $settings->saved_template ); 37 41 38 echo $template_system->render_template_post( $post );39 }42 echo $template_system->render_template_post( $template_post ); 43 } 40 44 41 45 $loop->pop_current_post_context(); 46 47 // Restore current post in context 48 $post = $previous_post; 49 42 50 ?> 43 51 </div> -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/loop/types/taxonomy-term/index.php
r3051363 r3057077 220 220 if ( ! isset($query_args[ $key ])) continue; 221 221 222 if (!is_array($query_args[ $key ])) { 223 $query_args[ $key ] = [$query_args[ $key ]]; 224 } 225 222 226 foreach ($query_args[ $key ] as $index => $value) { 223 227 -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/loop/utils/args.php
r3049893 r3057077 71 71 if ( in_array( 'array', $field_types ) ) { 72 72 73 if ( is_string( $value ) ) {73 if ( !is_array( $value ) ) { 74 74 $value = format\multiple_values( $value ); 75 75 } -
tangible-loops-and-logic/tags/4.1.3/vendor/tangible/template-system/plugin.php
r3051819 r3057077 3 3 * Plugin Name: Tangible Template System 4 4 * Description: Template system shared by Tangible Blocks and Loops & Logic 5 * Version: 202403 155 * Version: 20240322 6 6 * GitHub Plugin URI: https://github.com/tangible/template-system 7 7 */ -
tangible-loops-and-logic/trunk/readme.txt
r3051819 r3057077 1 1 === Loops & Logic === 2 Stable tag: 4.1. 22 Stable tag: 4.1.3 3 3 Requires at least: 6.0 4 4 Tested up to: 6.5 … … 151 151 152 152 == Changelog == 153 154 = 4.1.3 = 155 156 Release Date: 2024-03-22 157 158 - ACF Date/Time field: Add tests for field comparison with timestamps 159 - Base loop: Improve casting query parameter to array when non-string value is passed 160 - Beaver integration: Ensure Template module restores current post in context 161 - Taxonomy term loop: Handle case when include/exclude is given as integer ID 162 - Template save and format slugify: Use remove_accents() to convert all accent characters to ASCII characters, before creating slug with sanitize_title_with_dashes() 153 163 154 164 = 4.1.2 = -
tangible-loops-and-logic/trunk/tangible-loops-and-logic.php
r3051819 r3057077 4 4 * Plugin URI: https://loopsandlogic.com/ 5 5 * Description: A template system with content type loops and conditions. 6 * Version: 4.1. 26 * Version: 4.1.3 7 7 * Author: Team Tangible 8 8 * Author URI: https://teamtangible.com … … 10 10 */ 11 11 12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1. 2' );12 define( 'TANGIBLE_LOOPS_AND_LOGIC_VERSION', '4.1.3' ); 13 13 14 14 require_once __DIR__ . '/vendor/tangible/template-system/index.php'; -
tangible-loops-and-logic/trunk/vendor/composer/installed.json
r3051819 r3057077 8 8 "type": "git", 9 9 "url": "https://github.com/TangibleInc/template-system.git", 10 "reference": " a4a57dd961b6316574f444d73c02ca633c7df59e"10 "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/ a4a57dd961b6316574f444d73c02ca633c7df59e",15 "reference": " a4a57dd961b6316574f444d73c02ca633c7df59e",14 "url": "https://api.github.com/repos/TangibleInc/template-system/zipball/c6fe960f08db57756f2fa399e43af97b05c794e6", 15 "reference": "c6fe960f08db57756f2fa399e43af97b05c794e6", 16 16 "shasum": "" 17 17 }, … … 20 20 "yoast/phpunit-polyfills": "^1" 21 21 }, 22 "time": "2024-03- 15T15:53:34+00:00",22 "time": "2024-03-22T20:26:13+00:00", 23 23 "default-branch": true, 24 24 "type": "library", -
tangible-loops-and-logic/trunk/vendor/composer/installed.php
r3051819 r3057077 4 4 'pretty_version' => 'dev-main', 5 5 'version' => 'dev-main', 6 'reference' => ' d901b4160973cc898c9110b8499b2e1f6a56918c',6 'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 14 14 'pretty_version' => 'dev-main', 15 15 'version' => 'dev-main', 16 'reference' => ' d901b4160973cc898c9110b8499b2e1f6a56918c',16 'reference' => '0d4507688c241ac4609dcd1bcc5446acb39e110e', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 23 23 'pretty_version' => 'dev-main', 24 24 'version' => 'dev-main', 25 'reference' => ' a4a57dd961b6316574f444d73c02ca633c7df59e',25 'reference' => 'c6fe960f08db57756f2fa399e43af97b05c794e6', 26 26 'type' => 'library', 27 27 'install_path' => __DIR__ . '/../tangible/template-system', -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/admin/system.php
r3051819 r3057077 14 14 15 15 public $name = 'tangible_template_system'; 16 public $version = '202403 15';16 public $version = '20240322'; 17 17 18 18 public $url; -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/admin/template-post/save.php
r3017133 r3057077 88 88 $post = get_post( $result ); 89 89 90 $post_name = sanitize_title_with_dashes( 90 $post_name = sanitize_title_with_dashes(remove_accents( 91 91 ! empty( $name ) ? $name 92 : ( ! empty( $title ) ? $title : 'no-title' ) , '', 'save'93 ) ;92 : ( ! empty( $title ) ? $title : 'no-title' ) 93 ), '', 'save'); 94 94 95 95 $plugin->save_unique_template_post_slug( $post, $post_name ); … … 116 116 // Update template slug 117 117 118 $post_name = sanitize_title_with_dashes( ! empty( $_POST['name'] ) ? $_POST['name'] 119 : ( ! empty( $post->post_title ) ? $post->post_title 120 : 'no-title' 121 ), '', 'save' 122 ); 118 $post_name = sanitize_title_with_dashes(remove_accents( 119 ! empty( $_POST['name'] ) ? $_POST['name'] 120 : ( ! empty( $post->post_title ) ? $post->post_title 121 : 'no-title' 122 ) 123 ), '', 'save'); 123 124 124 125 $plugin->save_unique_template_post_slug( $post, $post_name ); -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/core.php
r3051819 r3057077 23 23 24 24 template_system::$state = (object) [ 25 'version' => '202403 15', // Automatically updated with npm run version25 'version' => '20240322', // Automatically updated with npm run version 26 26 'path' => __DIR__, 27 27 'url' => untrailingslashit( plugins_url( '/', __FILE__ ) ), -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/framework/format/index.php
r3049893 r3057077 111 111 */ 112 112 function slugify($string) { 113 return sanitize_title_with_dashes( $string, null, 'save');113 return sanitize_title_with_dashes(remove_accents($string), null, 'save'); 114 114 }; 115 115 … … 118 118 */ 119 119 function multiple_values($value) { 120 121 if (is_array($value)) return $value; 122 if (!is_string($value)) return [$value]; 123 120 124 if (isset($value[0]) && $value[0]==='[') { 121 125 try { … … 127 131 } 128 132 } 133 129 134 $values = array_map('trim', explode(',', $value)); 135 130 136 return $values; 131 137 }; -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/framework/index.php
r3051819 r3057077 17 17 18 18 public $name = 'tangible_framework'; 19 public $version = '202403 15';19 public $version = '20240322'; 20 20 21 21 function __construct() { -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/integrations/beaver/modules/tangible-template/includes/frontend.php
r3017133 r3057077 21 21 $html = $template_system->html; 22 22 23 global $post; 24 25 $previous_post = $post; 26 23 27 /** 24 28 * Ensure default loop context is set to current post … … 28 32 $loop->push_current_post_context(); 29 33 30 if ( $settings->toggle_type == 'editor' ) {34 if ( $settings->toggle_type == 'editor' ) { 31 35 32 echo $html->render_with_catch_exit( $settings->html );36 echo $html->render_with_catch_exit( $settings->html ); 33 37 34 } elseif ( ! empty( $settings->saved_template ) ) {38 } elseif ( ! empty( $settings->saved_template ) ) { 35 39 36 $post = get_post( $settings->saved_template );40 $template_post = get_post( $settings->saved_template ); 37 41 38 echo $template_system->render_template_post( $post );39 }42 echo $template_system->render_template_post( $template_post ); 43 } 40 44 41 45 $loop->pop_current_post_context(); 46 47 // Restore current post in context 48 $post = $previous_post; 49 42 50 ?> 43 51 </div> -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/loop/types/taxonomy-term/index.php
r3051363 r3057077 220 220 if ( ! isset($query_args[ $key ])) continue; 221 221 222 if (!is_array($query_args[ $key ])) { 223 $query_args[ $key ] = [$query_args[ $key ]]; 224 } 225 222 226 foreach ($query_args[ $key ] as $index => $value) { 223 227 -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/loop/utils/args.php
r3049893 r3057077 71 71 if ( in_array( 'array', $field_types ) ) { 72 72 73 if ( is_string( $value ) ) {73 if ( !is_array( $value ) ) { 74 74 $value = format\multiple_values( $value ); 75 75 } -
tangible-loops-and-logic/trunk/vendor/tangible/template-system/plugin.php
r3051819 r3057077 3 3 * Plugin Name: Tangible Template System 4 4 * Description: Template system shared by Tangible Blocks and Loops & Logic 5 * Version: 202403 155 * Version: 20240322 6 6 * GitHub Plugin URI: https://github.com/tangible/template-system 7 7 */
Note: See TracChangeset
for help on using the changeset viewer.