Merge pull request #2244 from entr/patch-1
Empty $integrations array prevents defining $links
This commit is contained in:
commit
380268216e
|
@ -399,6 +399,8 @@ if ( ! function_exists( 'woocommerce_settings' ) ) {
|
|||
|
||||
$current_section = empty( $current_section ) ? key( $integrations ) : $current_section;
|
||||
|
||||
$links = array();
|
||||
|
||||
foreach ( $integrations as $integration ) {
|
||||
$title = empty( $integration->method_title ) ? ucwords( $integration->id ) : ucwords( $integration->method_title );
|
||||
|
||||
|
|
Loading…
Reference in New Issue