Make WordPress Core

Ticket #45026: 45026.diff

File 45026.diff, 2.5 KB (added by Hafiz, 6 years ago)

replacement fix.

  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index 22ef697fe9..75b92889e7 100644
    a b function do_settings_sections( $page ) { 
    14821482 *
    14831483 * @since 2.7.0
    14841484 *
    1485  * @param string $page Slug title of the admin page who's settings fields you want to show.
    1486  * @param string $section Slug title of the settings section who's fields you want to show.
     1485 * @param string $page Slug title of the admin page whose settings fields you want to show.
     1486 * @param string $section Slug title of the settings section whose fields you want to show.
    14871487 */
    14881488function do_settings_fields( $page, $section ) {
    14891489        global $wp_settings_fields;
    function add_settings_error( $setting, $code, $message, $type = 'error' ) { 
    15681568 *
    15691569 * @global array $wp_settings_errors Storage array of errors registered during this pageload
    15701570 *
    1571  * @param string $setting Optional slug title of a specific setting who's errors you want.
     1571 * @param string $setting Optional slug title of a specific setting whose errors you want.
    15721572 * @param boolean $sanitize Whether to re-sanitize the setting value before returning errors.
    15731573 * @return array Array of settings errors
    15741574 */
    function get_settings_errors( $setting = '', $sanitize = false ) { 
    16311631 *
    16321632 * @since 3.0.0
    16331633 *
    1634  * @param string $setting        Optional slug title of a specific setting who's errors you want.
     1634 * @param string $setting        Optional slug title of a specific setting whose errors you want.
    16351635 * @param bool   $sanitize       Whether to re-sanitize the setting value before returning errors.
    16361636 * @param bool   $hide_on_update If set to true errors will not be shown if the settings page has
    16371637 *                               already been submitted.
  • src/wp-admin/includes/user.php

    diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
    index 4634c8e318..4e454c6a7f 100644
    a b function edit_user( $user_id = 0 ) { 
    244244 * Fetch a filtered list of user roles that the current user is
    245245 * allowed to edit.
    246246 *
    247  * Simple function who's main purpose is to allow filtering of the
     247 * Simple function whose main purpose is to allow filtering of the
    248248 * list of roles in the $wp_roles object so that plugins can remove
    249249 * inappropriate ones depending on the situation or user making edits.
    250250 * Specifically because without filtering anyone with the edit_users