Plugin Directory

Changeset 944996


Ignore:
Timestamp:
07/08/2014 03:19:31 PM (12 years ago)
Author:
AlphaGolf_fr
Message:

Update the trunk with 0.29.13

Location:
wp-symposium-toolbar/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-symposium-toolbar/trunk/readme.txt

    r944924 r944996  
    149149* Change: Styles, add a setting to limit the width of Toolbar items container, so admins can align Toolbar items with page content
    150150* Bugfix: Styles, missing Toolbar shadow in responsive mode
    151 * Change: code improvement, simplify the way avatars are removed from Toolbar
     151* Change: code improvement, simplify the way avatars are hidden from Toolbar
     152* Bugfix: Custom Menus, get rid of PHP notices when adding a new menu and no menu exists already
    152153
    153154= 0.29.0. =
  • wp-symposium-toolbar/trunk/wp-symposium-toolbar_admin.php

    r943673 r944996  
    10671067                            echo ' style="outline:1px solid #CC0000;" onclick="this.style.outline = \'none\';"';
    10681068                        }
    1069                         echo '/><span> ' . __( 'Display the notification icons accross the whole network to this site\'s users (if unchecked, this site\'s features will be displayed only on this site\'s Toolbar)', 'wp-symposium-toolbar' ) . '</span>';
     1069                        echo '/><span> ' . __( 'Share WP Symposium features of this site (notification icons and Profile page URL) accross the whole network for this site\'s users (if unchecked, this site\'s features will be displayed only on this site\'s Toolbar)', 'wp-symposium-toolbar' ) . '</span>';
    10701070                        echo '<br /><span class="description"> ' . __( 'Note: WPS features must be activated and correctly set up from the WPS Install page', 'wp-symposium-toolbar' ) . '</span><br />';
    10711071                    echo '</td>';
  • wp-symposium-toolbar/trunk/wp-symposium-toolbar_admin_functions.php

    r944924 r944996  
    679679                // New menu, if any
    680680                if ( isset( $_POST["new_custom_menu_slug"] ) && ( $_POST["new_custom_menu_slug"] != '' ) && isset( $_POST["new_custom_menu_location"] ) && ( $_POST["new_custom_menu_location"] != 'empty' ) ) {
    681                     $display_custom_menu_icon = ( is_string( $_POST['display_custom_menu_icon'][$key] ) ) ? strip_tags( trim( $_POST['display_custom_menu_icon'][$key] ) ) : "";
     681                    $display_custom_menu_icon = ( is_string( $_POST['new_custom_menu_icon'] ) ) ? strip_tags( trim( $_POST['new_custom_menu_icon'] ) ) : "";
    682682                    $menu_icon = ( strstr( $display_custom_menu_icon, 'content: ' ) || filter_var( $display_custom_menu_icon, FILTER_VALIDATE_URL ) ) ? $display_custom_menu_icon : "";
    683683                    $all_custom_menus[] = array(
     
    689689                        isset( $_POST['new_custom_menu_responsive'] )
    690690                    );
     691                    if ( !isset( $key) ) { $key = 0; } else { $key = $key + 1; }
    691692                    if ( strstr( $menu_icon, 'content: ' ) ) $all_custom_icons .= '#wpadminbar li.wpst-custom-item-'.$key.' > .ab-item:before { font-family: dashicons !important; '.$menu_icon.'; display: block; } ';
    692693                    if ( $display_custom_menu_icon != $menu_icon ) $wpst_failed .= $_POST['display_custom_menu_slug'][$key].', '.$_POST['display_custom_menu_location'][$key].__( ': custom icon format not recognized', 'wp-symposium-toolbar' ).'<br />';
  • wp-symposium-toolbar/trunk/wp-symposium-toolbar_functions.php

    r943738 r944996  
    273273   
    274274    // If Multisite and network activated, add network menus to custom menus
    275     if ( is_multisite() && is_plugin_active_for_network( 'wp-symposium-toolbar/wp-symposium-toolbar.php' ) ) {
     275    if ( is_multisite() && !is_main_site() && is_plugin_active_for_network( 'wp-symposium-toolbar/wp-symposium-toolbar.php' ) ) {
    276276        $all_network_menus = get_option( 'wpst_tech_network_menus', array() );
    277277        if ( $all_network_menus != array() ) {
Note: See TracChangeset for help on using the changeset viewer.