Skip to content

Commit

Permalink
add source to generator
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller committed Jan 7, 2025
1 parent 5001409 commit a0cd6e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/packages/protect-models/src/class-threat-model.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace Automattic\Jetpack\Protect_Models;

use Automattic\Jetpack\Redirect;

/**
* Model class for threat data.
*/
Expand Down Expand Up @@ -193,6 +195,7 @@ public static function generate_from_extension_vulnerabilities( $extension, $vul
$extension->version
),
'vulnerabilities' => $vulnerabilities,
'source' => $vulnerability->id ? Redirect::get_url( 'jetpack-protect-vul-info', array( 'path' => $vulnerability->id ) ) : null,

Check failure on line 198 in projects/packages/protect-models/src/class-threat-model.php

View workflow job for this annotation

GitHub Actions / Static analysis

UndefError PhanUndeclaredClassMethod Call to method get_url from undeclared class \Automattic\Jetpack\Redirect
)
);
return $threat;
Expand Down

0 comments on commit a0cd6e5

Please sign in to comment.