← All changes
|
modules/theme-tools/social-menu/icon-functions.php
+5
-4
13.8.3
→
16.3-a.5
View file →
| @@ -4,8 +4,12 @@ | ||
| 4 | 4 | * |
| 5 | 5 | * @package automattic/jetpack |
| 6 | 6 | */ |
| 7 | 7 | |
| 8 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 9 | + exit( 0 ); | |
| 10 | +} | |
| 11 | + | |
| 8 | 12 | if ( ! function_exists( 'jetpack_social_menu_include_svg_icons' ) ) { |
| 9 | 13 | /** |
| 10 | 14 | * Add SVG definitions to the footer. |
| 11 | 15 | */ |
| @@ -64,9 +68,9 @@ | ||
| 64 | 68 | return esc_html__( 'Please define default parameters in the form of an array.', 'jetpack' ); |
| 65 | 69 | } |
| 66 | 70 | |
| 67 | 71 | // Define an icon. |
| 68 | - if ( false === array_key_exists( 'icon', $args ) ) { | |
| 72 | + if ( ! array_key_exists( 'icon', $args ) ) { | |
| 69 | 73 | return esc_html__( 'Please define an SVG icon filename.', 'jetpack' ); |
| 70 | 74 | } |
| 71 | 75 | |
| 72 | 76 | // Set defaults. |
| @@ -193,13 +197,10 @@ | ||
| 193 | 197 | 'medium.com' => 'medium', |
| 194 | 198 | 'nextdoor.com' => 'nextdoor', |
| 195 | 199 | 'patreon.com' => 'patreon', |
| 196 | 200 | 'pinterest.' => 'pinterest', |
| 197 | - 'getpocket.com' => 'pocket', | |
| 198 | 201 | 'ravelry.com' => 'ravelry', |
| 199 | 202 | 'reddit.com' => 'reddit', |
| 200 | - 'skype.com' => 'skype', | |
| 201 | - 'skype:' => 'skype', | |
| 202 | 203 | 'slideshare.net' => 'slideshare', |
| 203 | 204 | 'sms:' => 'sms', |
| 204 | 205 | 'snapchat.com' => 'snapchat', |
| 205 | 206 | 'soundcloud.com' => 'soundcloud', |