Make WordPress Core

Changeset 11235


Ignore:
Timestamp:
05/07/2009 07:30:41 PM (14 years ago)
Author:
ryan
Message:

Allow plugis to replace just the default help, preserving contextual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/template.php

    r11204 r11235  
    35173517
    35183518    $contextual_help .= '<div class="metabox-prefs">';
    3519     $contextual_help .= __('<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>');
    3520     $contextual_help .= '<br />';
    3521     $contextual_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
     3519    $default_help = __('<a href="http://codex.wordpress.org/" target="_blank">Documentation</a>');
     3520    $default_help .= '<br />';
     3521    $default_help .= __('<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>');
     3522    $contextual_help .= apply_filters('default_contextual_help', $default_help);
    35223523    $contextual_help .= "</div>\n";
    35233524    echo apply_filters('contextual_help', $contextual_help, $screen);
Note: See TracChangeset for help on using the changeset viewer.