Plugin Directory

Changeset 2446517


Ignore:
Timestamp:
12/27/2020 09:53:26 PM (5 years ago)
Author:
atakanoz
Message:

some fixes

Location:
performance-kit/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • performance-kit/trunk/admin/modules/analytics-module.php

    r2446406 r2446517  
    2020 */
    2121
    22 if ( get_option( 'kit-local-analytics' ) === '1' ) {
     22if ( ! empty( get_option( 'kit-local-analytics' ) ) && get_option( 'kit-local-analytics' ) === '1' ) {
    2323
    2424    if ( ! empty( get_option( 'kit-tracking-position' ) ) && get_option( 'kit-tracking-position' ) === 'wp_footer' ) {
  • performance-kit/trunk/admin/modules/misc-module.php

    r2446406 r2446517  
    2121 */
    2222
    23 if ( ! empty( get_option( 'kit-svg-support' ) ) && get_option( 'kit-svg-support' ) == '1' ) {
     23if ( ! empty( get_option( 'kit-svg-support' ) ) && get_option( 'kit-svg-support' ) === '1' ) {
    2424
    2525    function kit_mime_types( $mimes ) {
     
    8484 */
    8585
    86 if ( ! empty( get_option( 'kit-google-maps' ) ) && get_option( 'kit-google-maps' ) == '1' ) {
     86if ( ! empty( get_option( 'kit-google-maps' ) ) && get_option( 'kit-google-maps' ) === '1' ) {
    8787    add_action( 'template_redirect', 'kit_disable_google_maps' );
    8888}
     
    105105 */
    106106
    107 if ( ! empty( get_option( 'kit-google-fonts' ) ) && get_option( 'kit-google-fonts' ) == '1' ) {
     107if ( ! empty( get_option( 'kit-google-fonts' ) ) && get_option( 'kit-google-fonts' ) === '1' ) {
    108108    add_action( 'template_redirect', 'kit_disable_google_fonts' );
    109109}
     
    126126 */
    127127
    128 if ( ! empty( get_option( 'kit-gutenberg-editor' ) ) && get_option( 'kit-gutenberg-editor' ) == '1' ) {
     128if ( ! empty( get_option( 'kit-gutenberg-editor' ) ) && get_option( 'kit-gutenberg-editor' ) === '1' ) {
    129129
    130130    if ( version_compare( $GLOBALS['wp_version'], '5.0-beta', '>' ) ) {
     
    207207 */
    208208
    209 if ( ! empty( get_option( 'kit-html-comments' ) ) && get_option( 'kit-html-comments' ) == '1' ) {
     209if ( ! empty( get_option( 'kit-html-comments' ) ) && get_option( 'kit-html-comments' ) === '1' ) {
    210210    add_filter( 'pre_comment_content', 'esc_html' );
    211211}
  • performance-kit/trunk/performance-kit.php

    r2446406 r2446517  
    157157                    'has_addons'     => false,
    158158                    'has_paid_plans' => false,
    159                     'menu'           => array(
    160                         'slug'       => 'performance-kit',
    161                         'first-path' => '/admin.php?page=performance-kit',
    162                         'account'    => false,
    163                         'contact'    => false,
    164                         'support'    => false,
    165                     ),
     159                    'menu'           => false,
    166160                )
    167161            );
Note: See TracChangeset for help on using the changeset viewer.