From ba40c174c78c28df2f1503cfde972d291a569bbf Mon Sep 17 00:00:00 2001 From: Pedro de Carvalho Date: Sat, 10 Feb 2024 20:01:25 +0000 Subject: [PATCH 1/2] Allow codestart to be used as a lib When including it as a lib, running it for tests where WP ABSPATH isn't set yet, will terminate the run. This can happen using composer and running phpcs for example. --- codestar-framework.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codestar-framework.php b/codestar-framework.php index 90e9b63..41f5182 100644 --- a/codestar-framework.php +++ b/codestar-framework.php @@ -1,4 +1,4 @@ - Date: Sun, 4 Aug 2024 21:38:36 +0100 Subject: [PATCH 2/2] Update image_select to allow title on images --- fields/image_select/image_select.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fields/image_select/image_select.php b/fields/image_select/image_select.php index c3abc18..530e95e 100644 --- a/fields/image_select/image_select.php +++ b/fields/image_select/image_select.php @@ -43,7 +43,7 @@ public function render() { echo '
'; echo '
'; - echo 'img-'. esc_attr( $num++ ) .''; + echo 'img-'. esc_attr( $num++ ) .''; echo 'field_attributes() . esc_attr( $checked ) .'/>'; echo '
'; echo '
';