Make WordPress Core


Ignore:
Timestamp:
01/18/2021 03:26:29 AM (4 years ago)
Author:
peterwilsoncc
Message:

Tests: Remove references to post status public.

Replace invalid post status public with the valid status publish.

See #51802.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r49603 r49974  
    404404        $post = array(
    405405            'post_author'  => self::$editor_id,
    406             'post_status'  => 'public',
     406            'post_status'  => 'publish',
    407407            'post_content' => rand_str(),
    408408            'post_title'   => rand_str(),
     
    786786        $post_data      = array(
    787787            'post_author'  => self::$editor_id,
    788             'post_status'  => 'public',
     788            'post_status'  => 'publish',
    789789            'post_content' => rand_str(),
    790790            'post_title'   => $title,
     
    972972            array(
    973973                'post_author'  => self::$editor_id,
    974                 'post_status'  => 'public',
     974                'post_status'  => 'publish',
    975975                'post_content' => rand_str(),
    976976                'post_title'   => rand_str(),
     
    990990            array(
    991991                'post_author'  => self::$editor_id,
    992                 'post_status'  => 'public',
     992                'post_status'  => 'publish',
    993993                'post_content' => rand_str(),
    994994                'post_title'   => rand_str(),
     
    10111011            array(
    10121012                'post_author'  => self::$editor_id,
    1013                 'post_status'  => 'public',
     1013                'post_status'  => 'publish',
    10141014                'post_content' => rand_str(),
    10151015                'post_title'   => rand_str(),
     
    10331033            array(
    10341034                'post_author'  => self::$editor_id,
    1035                 'post_status'  => 'public',
     1035                'post_status'  => 'publish',
    10361036                'post_content' => rand_str(),
    10371037                'post_title'   => rand_str(),
Note: See TracChangeset for help on using the changeset viewer.