Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
bb547e4
Code from GB
luisherranz Jan 31, 2024
236eda2
Fix test pollution
luisherranz Jan 31, 2024
7c95ee5
Fix tabs in multiline comments
luisherranz Jan 31, 2024
c084276
Improve state/config return msg and fix arg name
luisherranz Jan 31, 2024
0fe3225
Remove unnecessary module registration
luisherranz Jan 31, 2024
e8daa1c
Fix typos
luisherranz Feb 1, 2024
c0f5804
Add missing @since statements
luisherranz Feb 1, 2024
eab8f28
Switch to null coalescing operator
luisherranz Feb 1, 2024
19e454f
Replace array_push with $array[]
luisherranz Feb 1, 2024
61d896f
Simplify conditional statement
luisherranz Feb 1, 2024
84ea8fd
Replace null with empty array in state/config functions
luisherranz Feb 1, 2024
0503eed
Add missing PHP 7 types
luisherranz Feb 1, 2024
36e8adb
Remove default args passed to filter
luisherranz Feb 1, 2024
2fef289
Add missing tests comments
luisherranz Feb 1, 2024
4100309
Add @ticket to all the tests
luisherranz Feb 1, 2024
8efcc12
Merge branch 'trunk' into wp-interactivity-api
luisherranz Feb 1, 2024
69c6f78
Switch from static to global and move hooks/modules to settings
luisherranz Feb 1, 2024
5462b18
Bail out if it finds an SVG or MathML tag
luisherranz Feb 1, 2024
6dc2d42
Check for tags that don't visit their closer tag
luisherranz Feb 2, 2024
e9cb1fe
Use non-min script module versions
luisherranz Feb 2, 2024
0534970
Add missing PHP 7 types
luisherranz Feb 2, 2024
2bc2bea
Merge branch 'trunk' into wp-interactivity-api
luisherranz Feb 2, 2024
553e8a4
Remove md5 in favor of array comparison
luisherranz Feb 2, 2024
ada6fe5
Use a hook to register the script modules so they can be overwritten …
luisherranz Feb 3, 2024
ee6e780
Omit curly brackets on string variable
luisherranz Feb 4, 2024
1c73521
Make classes final
luisherranz Feb 4, 2024
35ae36b
Fix typos
luisherranz Feb 4, 2024
a81d251
Add @uses to process_directives DocBlock
luisherranz Feb 4, 2024
97d4c98
Don't return the result of array_pop
luisherranz Feb 4, 2024
56a4d48
Don't return true on `has_and_visits_its_closer_tag` on null tag names
luisherranz Feb 4, 2024
33fbc8d
Merge branch 'trunk' into wp-interactivity-api
luisherranz Feb 4, 2024
d19252b
Remove unnecessary file
luisherranz Feb 5, 2024
49d5ebc
Remove more unnecessary files from wp-settings
luisherranz Feb 5, 2024
264d0fb
Update WP_Interactivity_API_Directives_Processor
luisherranz Feb 5, 2024
41ccbc1
Update WP_Interactivity_API
luisherranz Feb 5, 2024
c848fe2
Add tests for the new processors
luisherranz Feb 5, 2024
6345e24
Support data-wp-interactive="myPlugin"
luisherranz Feb 5, 2024
3b12a11
Add support for data_wp_context
luisherranz Feb 5, 2024
4618663
Rename $start/$end to more descriptive names and add get_after_opener…
luisherranz Feb 6, 2024
ff61c7c
Fix some texts
luisherranz Feb 6, 2024
71cda6e
Replace preg_replace with rtrim
luisherranz Feb 6, 2024
4dbb4fe
Rename set_style_property to merge_style_property
luisherranz Feb 6, 2024
330472c
Add json extension requirement to composer
luisherranz Feb 6, 2024
e0533e5
Fix some indentation issues
luisherranz Feb 6, 2024
e5b88fa
Replace array_push
luisherranz Feb 6, 2024
f010314
Use two block names in tests to make sure they render fine
luisherranz Feb 6, 2024
a2b4aae
Switch to render_block_{$this->name} filter
luisherranz Feb 6, 2024
c90d337
Add LanguageTool suggestion
luisherranz Feb 6, 2024
8eec2f3
Add missing processors in @uses
luisherranz Feb 6, 2024
8a1caa9
Try moving styles to a WP inline style
luisherranz Feb 6, 2024
71d1918
Adapt interactivity detection to new schema
luisherranz Feb 6, 2024
69afa13
Fix inline style
luisherranz Feb 6, 2024
1bb9137
Change data-wp-router-region tests to check for the inline styles
luisherranz Feb 6, 2024
30dc904
Checks for valid namespace characters in `data-wp-interactive`
luisherranz Feb 6, 2024
9d21532
Replace underscores with hyphens
luisherranz Feb 6, 2024
a24af7d
Remove % in 0 values of CSS
luisherranz Feb 7, 2024
3b189f7
Rename functions to use `get` and `print`
luisherranz Feb 7, 2024
ef1c9ae
Remove use of `@uses`
luisherranz Feb 7, 2024
76dea4f
Don't use the primary color for the top loading bar
luisherranz Feb 7, 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
Prev Previous commit
Next Next commit
Add missing @SInCE statements
  • Loading branch information
luisherranz committed Feb 1, 2024
commit c0f580454a2ddf4db571f3f5e28f5d3a0822a761
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@
*
* @package WordPress
* @subpackage Interactivity API
* @since 6.5.0
*/

/**
* Class used to iterate over the tags of an HTML string and help process the
* directive attributes.
*
* @since 6.5.0
*
* @access private
*/
class WP_Interactivity_API_Directives_Processor extends WP_HTML_Tag_Processor {
/**
* Returns the content between two balanced tags.
*
* @since 6.5.0
*
* @access private
*
* @return string|null The content between the current opening and its matching closing tag or null if it doesn't
Expand All @@ -41,6 +46,8 @@ public function get_content_between_balanced_tags() {
/**
* Sets the content between two balanced tags.
*
* @since 6.5.0
*
* @access private
*
* @param string $new_content The string to replace the content between the matching tags.
Expand Down Expand Up @@ -70,6 +77,8 @@ public function set_content_between_balanced_tags( string $new_content ): bool {
* Returns a pair of bookmarks for the current opening tag and the matching
* closing tag.
*
* @since 6.5.0
*
* @return array|null A pair of bookmarks, or null if there's no matching closing tag.
*/
private function get_balanced_tag_bookmarks() {
Expand All @@ -96,6 +105,8 @@ private function get_balanced_tag_bookmarks() {
* including nested tags of the same name. Returns false when called on a
* closing or void tag, or if no matching closing tag was found.
*
* @since 6.5.0
*
* @return bool Whether a matching closing tag was found.
*/
private function next_balanced_closer(): bool {
Expand Down Expand Up @@ -130,6 +141,8 @@ private function next_balanced_closer(): bool {
/**
* Checks whether the current tag is void.
*
* @since 6.5.0
*
* @access private
*
* @return bool Whether the current tag is void or not.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
*
* @package WordPress
* @subpackage Interactivity API
* @since 6.5.0
*/

/**
* Class used to process the Interactivity API on the server.
*
* @since 6.5.0
*/
class WP_Interactivity_API {
/**
Expand Down
1 change: 1 addition & 0 deletions src/wp-includes/interactivity-api/interactivity-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
* @package WordPress
* @subpackage Interactivity API
* @since 6.5.0
*/

/**
Expand Down