WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/26/2015 01:04:23 PM (4 years ago)
Author:
DrewAPicture
Message:

Docs: Relocate the hook doc for the show_password_fields filter to its duplicate, since the original was removed in [34582].

Adds a changelog entry noting the adjustment in behavior, and simplifies the conditional logic.

Fixes #15115.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r34021 r34590  
    439439
    440440<?php
    441 /** This filter is documented in wp-admin/user-new.php */
    442 $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser );
    443 if ( $show_password_fields ) :
     441/**
     442 * Filter the display of the password fields.
     443 *
     444 * @since 1.5.1
     445 * @since 4.4.0 Now evaluated only in user-edit.php.
     446 *
     447 * @param bool $show Whether to show the password fields. Default true.
     448 */
     449if ( $show_password_fields = apply_filters( 'show_password_fields', true, $profileuser ) ) :
    444450?>
    445451</table>
Note: See TracChangeset for help on using the changeset viewer.