WordPress.org

Plugin Directory

Changeset 725793


Ignore:
Timestamp:
06/12/13 17:07:56 (10 months ago)
Author:
donncha
Message:

As well as checking if Jetpack exists, check the contact-form module as that creates the Feedbacks menu

Location:
polldaddy/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • polldaddy/trunk/polldaddy-org.php

    r725790 r725793  
    7171        parent::admin_menu();            
    7272         
    73         if ( class_exists( 'Jetpack' ) ) { 
     73        $jetpack_active_modules = get_option('jetpack_active_modules'); 
     74        if ( class_exists( 'Jetpack' ) && ( $jetpack_active_modules && in_array( 'contact-form', $jetpack_active_modules ) ) ) { 
    7475            add_submenu_page( 'edit.php?post_type=feedback', __( 'Feedbacks', 'polldaddy' ), __( 'Feedbacks', 'polldaddy' ), 'edit_pages', 'edit.php?post_type=feedback' );  
    7576     
  • polldaddy/trunk/polldaddy.php

    r698623 r725793  
    9191            $parent_slug = $menu_slug; 
    9292             
    93             if ( !class_exists( 'Jetpack' ) ) { 
     93            $jetpack_active_modules = get_option('jetpack_active_modules'); 
     94            if ( false == class_exists( 'Jetpack' ) || ( class_exists( 'Jetpack' ) && $jetpack_active_modules && false == in_array( 'contact-form', $jetpack_active_modules ) ) ) { 
    9495                //Create a Feedback Top level menu, like with Jetpack, to hold the Polls and Ratings submenus. 
    9596                if ( $menu_slug == 'polls' ) 
    96                     $menu_title = __( 'Feedback', 'polldaddy' );     
     97                    $menu_title = __( 'Feedbacks', 'polldaddy' );    
    9798                     
    9899                $parent_slug = 'polls'; 
Note: See TracChangeset for help on using the changeset viewer.