| @@ -1,5 +1,10 @@ | ||
| 1 | 1 | <?php |
| 2 | +// phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- view template receives variables via extract(); prefixing is impractical. | |
| 3 | + | |
| 4 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 5 | + exit; | |
| 6 | +} | |
| 2 | 7 | $mods = betterdocs()->customizer->defaults->generate_defaults(); |
| 3 | 8 | |
| 4 | 9 | if ( ! $mods['betterdocs_post_social_share'] ) { |
| 5 | 10 | return; |