Skip to content
Permalink
Browse files

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
  • Loading branch information...
whyisjake committed Oct 1, 2019
1 parent 1f5525d commit 02cf7f526e7de9871e8906c5f4a29024e3c5692f
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/phpunit/tests/shortcode.php
@@ -740,7 +740,7 @@ function test_pcre_performance( $input ) {
}
function data_whole_posts() {
require_once( DIR_TESTDATA . '/formatting/whole-posts.php' );
require_once DIR_TESTDATA . '/formatting/whole-posts.php';
return data_whole_posts();
}
@@ -992,6 +992,8 @@ public function test_shortcode_parse_atts( $text, $expected ) {
/**
* Data provider for `test_shortcode_parse_atts()`.
*
* @ticket 47863
*
* @return array {
* @type array {
* @type string $text A single shortcode format or key/value pair string.
@@ -1057,19 +1059,19 @@ public function data_shortcode_parse_atts() {
array(
'[unittest link=https://unit.test/ /]',
array(
'link' => 'https://unit.test/',
'link' => 'https://unit.test/',
),
),
array(
'[unittest link=https://unit.test/ ]',
array(
'link' => 'https://unit.test/',
'link' => 'https://unit.test/',
),
),
array(
'[unittest link=https://unit.test/]',
array(
'link' => 'https://unit.test',
'link' => 'https://unit.test',
),
),
array(

0 comments on commit 02cf7f5

Please sign in to comment.
You can’t perform that action at this time.