Skip to content

Commit

Permalink
Blocks: Notice: The $content parameter is a required parameter. (#551)
Browse files Browse the repository at this point in the history
This removes a PHP Deprecated notice, as a optional parameter was declared before a required parameter.

```
Deprecated: Optional parameter $content declared before required parameter $tag is implicitly treated as a required parameter in mu-plugins/blocks/notice/index.php on line 37
```
  • Loading branch information
dd32 authored Jan 9, 2024
1 parent 6d37a36 commit 575b326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mu-plugins/blocks/notice/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function init() {
*
* @return string Shortcode output as HTML markup.
*/
function render_shortcode( $attr, $content = '', $tag ) {
function render_shortcode( $attr, $content, $tag ) {
$shortcode_mapping = array(
'info' => 'info',
'tip' => 'tip',
Expand Down

0 comments on commit 575b326

Please sign in to comment.