Make WordPress Core


Ignore:
Timestamp:
09/23/2013 08:28:30 PM (11 years ago)
Author:
nacin
Message:

Change 'This post is password protected' to 'This content', for the benefit of custom post types.

props MikeHansenMe.
fixes #23603.

File:
1 edited

Legend:

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

    r25570 r25582  
    12361236    $label = 'pwbox-' . ( empty($post->ID) ? rand() : $post->ID );
    12371237    $output = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" class="post-password-form" method="post">
    1238     <p>' . __( 'This post is password protected. To view it please enter your password below:' ) . '</p>
     1238    <p>' . __( 'This content is password protected. To view it please enter your password below:' ) . '</p>
    12391239    <p><label for="' . $label . '">' . __( 'Password:' ) . ' <input name="post_password" id="' . $label . '" type="password" size="20" /></label> <input type="submit" name="Submit" value="' . esc_attr__( 'Submit' ) . '" /></p>
    12401240    </form>
Note: See TracChangeset for help on using the changeset viewer.