Make WordPress Core

Ticket #2617: 2617.diff

File 2617.diff, 1.4 KB (added by westi, 20 years ago)

Patch with move verbose message

  • wp-admin/admin-functions.php

     
    634634                                        $default_link_cat_id = get_option('default_link_category');
    635635
    636636                                        if ( ($category->cat_ID != $default_cat_id) && ($category->cat_ID != $default_link_cat_id) )
    637                                                 $edit .= "<td><a href='categories.php?action=delete&amp;cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '".sprintf(__("You are about to delete the category &quot;%s&quot;.  All of its posts and bookmarks will go to the default categories.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."), addslashes($category->cat_name))."' );\" class='delete'>".__('Delete')."</a>";
     637                                                $edit .= "<td><a href='categories.php?action=delete&amp;cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '".sprintf(__("You are about to delete the category &quot;%s&quot;.\\nAll of its posts will go into the default category of &quot;".get_catname($default_cat_id)."&quot;\\nAll of its bookmarks will go into the default category of &quot;".get_catname($default_link_cat_id)."&quot;.\\n&quot;OK&quot; to delete, &quot;Cancel&quot; to stop."), addslashes($category->cat_name))."' );\" class='delete'>".__('Delete')."</a>";
    638638                                        else
    639639                                                $edit .= "<td style='text-align:center'>".__("Default");
    640640                                }