Make WordPress Core

Changeset 13294


Ignore:
Timestamp:
02/22/2010 05:48:50 PM (15 years ago)
Author:
wpmuguru
Message:

add apostophes to custom menu update messages, See #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-navigation.php

    r13286 r13294  
    8282        // @todo validate set_wp_menu
    8383        update_option( 'wp_custom_nav_menu', $_POST['enable_wp_menu'] );
    84         $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename.'s Custom Menu has been updated!</p></div>';
     84        $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename."'s Custom Menu has been updated!</p></div>";
    8585    }
    8686
     
    119119        if ( $success ) {
    120120            // DISPLAY SUCCESS MESSAGE IF Menu Reset Correctly
    121             $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename.'s Custom Menu has been RESET!</p></div>';
     121            $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename."'s Custom Menu has been RESET!</p></div>";
    122122            // GET reset menu id
    123123            $custom_menus = array();
     
    125125        } else {
    126126            // DISPLAY SUCCESS MESSAGE IF Menu Reset Correctly
    127             $messagesdiv = '<div id="message" class="error fade below-h2"><p>'.$themename.'s Custom Menu could not be RESET. Please try again.</p></div>';
     127            $messagesdiv = '<div id="message" class="error fade below-h2"><p>'.$themename."'s Custom Menu could not be RESET. Please try again.</p></div>";
    128128        }
    129129    } elseif ( $postCounter > 0 && $menu_selected_id > 0 ) {
     
    174174        }
    175175        // DISPLAY SUCCESS MESSAGE IF POST CORRECT
    176         $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename.'s Custom Menu has been updated!</p></div>';
     176        $messagesdiv = '<div id="message" class="updated fade below-h2"><p>'.$themename."'s Custom Menu has been updated!</p></div>";
    177177    }
    178178
Note: See TracChangeset for help on using the changeset viewer.