Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • /****** Customize admin message "Howdy" to "Welcome" ******/
    $nohowdy = "Hello!";
    
    if (is_admin()) {
        add_action('init', 'artdev_nohowdy_h');
        add_action('admin_footer', 'artdev_nohowdy_f');
    }
    // Load jQuery
    function artdev_nohowdy_h() {
        wp_enqueue_script('jquery');
    }
    // Modify
    function artdev_nohowdy_f() {
    global $nohowdy;
    echo <<<JS
    <script type="text/javascript">
    //<![CDATA[
    var nohowdy = "$nohowdy";
    jQuery('#user_info p')
        .html(
        jQuery('#user_info p')
            .html()
            .replace(/Howdy/,nohowdy)
        );
    //]]>
    JS;
    }
    
    add_filter('gettext', 'change_howdy', 10, 3);
    
    function change_howdy($translated, $text, $domain) {
    
        if (!is_admin() || 'default' != $domain)
            return $translated;
    
        if (false !== strpos($translated, 'Howdy'))
            return str_replace('Howdy', 'Hello', $translated);
    
        return $translated;
    }

    I had the same problem with add media button when i updated my wp 3.5.2… and i resolved it, in my function.php file i delete some pice of code which is translated howdy text and that all(I mean check your functions php file if there some pice of code which incompletable ) I hope it is helps to someone and sorry for my english:)

Viewing 2 replies - 1 through 2 (of 2 total)