Skip to content

Commit

Permalink
Update includes/Utilities/DomHelpers.php
Browse files Browse the repository at this point in the history
Co-authored-by: John Parris <[email protected]>
  • Loading branch information
theodesp and mindctrl authored Jan 3, 2024
1 parent 5a44310 commit e539a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/Utilities/DomHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class DOMHelpers {
*
* @return string|null extracted attribute
*/
public static function parseAttribute( $html, $selector = null, $attribute, $default_value = null ): ?string {
public static function parseAttribute( $html, $selector = '', $attribute, $default_value = null ): ?string {
$doc = new Document();
$doc->loadHTML( $html );
if ( '*' === $selector ) {
Expand Down

0 comments on commit e539a81

Please sign in to comment.