Skip to content

Commit

Permalink
Docs: Use typed array notation for the $attrs parameter in `links_a…
Browse files Browse the repository at this point in the history
…dd_base_url()`.

Follow-up to [8540], [32590], [46596].

See #61608.

git-svn-id: https://develop.svn.wordpress.org/trunk@59165 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Oct 4, 2024
1 parent 7d3c488 commit abe564f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wp-includes/formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -5392,9 +5392,9 @@ function wp_html_excerpt( $str, $count, $more = null ) {
*
* @global string $_links_add_base
*
* @param string $content String to search for links in.
* @param string $base The base URL to prefix to links.
* @param array $attrs The attributes which should be processed.
* @param string $content String to search for links in.
* @param string $base The base URL to prefix to links.
* @param string[] $attrs The attributes which should be processed.
* @return string The processed content.
*/
function links_add_base_url( $content, $base, $attrs = array( 'src', 'href' ) ) {
Expand Down

0 comments on commit abe564f

Please sign in to comment.