WordPress.org

Plugin Directory

jetpack

Opened 4 years ago

Closed 4 years ago

#1974 closed defect (duplicate)

Sharing: Notice when the sharing label value is not set

Reported by: jeherve Owned by: tmoorewp
Priority: normal Severity: normal
Plugin: jetpack Keywords: sharing sharedaddy has-patch
Cc: jeherve, richard@…

Description

In some cases, the sharing_label value is not defined, and triggers a notice when WP_DEBUG is set to true:

Notice: Undefined index: sharing_label in /.../wp-content/plugins/jetpack/modules/sharedaddy/sharing.php on line 317

Could we check if the value is set before to display it?

Attachments (1)

1974.diff (1.2 KB) - added by jeherve 4 years ago.
Check if label value is set before to display it

Download all attachments as: .zip

Change History (3)

@jeherve4 years ago

Check if label value is set before to display it

comment:1 @richardmtl4 years ago

  • Cc richard@… added

comment:2 @jeherve4 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.