mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2025-09-04 08:39:02 +08:00
Change type definition on notify_users to allow for null input (#34)
Signed-off-by: Sören Wünsch <soeren.wrede@parshipgroup.com> Signed-off-by: Topher DeRosia <topher@mediaforge.pro> Signed-off-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: Sören Wünsch <soerenwrede@gmail.com> Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com> Co-authored-by: Joost de Valk <joost@altha.nl>
This commit is contained in:
parent
24d7e9e49b
commit
d2f2df6787
1 changed files with 2 additions and 2 deletions
|
@ -18,10 +18,10 @@ function bootstrap() {
|
||||||
/**
|
/**
|
||||||
* Add a notification to the site footer about FAIR/AspirePress.
|
* Add a notification to the site footer about FAIR/AspirePress.
|
||||||
*
|
*
|
||||||
* @param string $content The current version or update notification.
|
* @param string|null $content The current version or update notification.
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function notify_users( string $content = '' ) : string {
|
function notify_users( ?string $content = null ) : string {
|
||||||
$message = sprintf(
|
$message = sprintf(
|
||||||
// translators: 1) Fair PM URL, 2) AspirePress URL.
|
// translators: 1) Fair PM URL, 2) AspirePress URL.
|
||||||
__( 'Updates served from the <a href="%1$s">FAIR Package Manager</a> and <a href="%2$s">AspirePress</a>', 'fair' ),
|
__( 'Updates served from the <a href="%1$s">FAIR Package Manager</a> and <a href="%2$s">AspirePress</a>', 'fair' ),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue