Shortcodes: Improve handling from shortcode_parse_attts()
.
Added missing @ticket for #47863 on `data_shortcode_parse_atts()` Also cleans up some linter fixes that were missed. Props garrett-eclipse, whyisjake. ixes #47863. git-svn-id: https://develop.svn.wordpress.org/trunk@46370 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1f5525d2ff
commit
02cf7f526e
@ -740,7 +740,7 @@ EOF;
|
|||||||
}
|
}
|
||||||
|
|
||||||
function data_whole_posts() {
|
function data_whole_posts() {
|
||||||
require_once( DIR_TESTDATA . '/formatting/whole-posts.php' );
|
require_once DIR_TESTDATA . '/formatting/whole-posts.php';
|
||||||
return data_whole_posts();
|
return data_whole_posts();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -992,6 +992,8 @@ EOF;
|
|||||||
/**
|
/**
|
||||||
* Data provider for `test_shortcode_parse_atts()`.
|
* Data provider for `test_shortcode_parse_atts()`.
|
||||||
*
|
*
|
||||||
|
* @ticket 47863
|
||||||
|
*
|
||||||
* @return array {
|
* @return array {
|
||||||
* @type array {
|
* @type array {
|
||||||
* @type string $text A single shortcode format or key/value pair string.
|
* @type string $text A single shortcode format or key/value pair string.
|
||||||
@ -1057,19 +1059,19 @@ EOF;
|
|||||||
array(
|
array(
|
||||||
'[unittest link=https://unit.test/ /]',
|
'[unittest link=https://unit.test/ /]',
|
||||||
array(
|
array(
|
||||||
'link' => 'https://unit.test/',
|
'link' => 'https://unit.test/',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[unittest link=https://unit.test/ ]',
|
'[unittest link=https://unit.test/ ]',
|
||||||
array(
|
array(
|
||||||
'link' => 'https://unit.test/',
|
'link' => 'https://unit.test/',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'[unittest link=https://unit.test/]',
|
'[unittest link=https://unit.test/]',
|
||||||
array(
|
array(
|
||||||
'link' => 'https://unit.test',
|
'link' => 'https://unit.test',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user