Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/canonical/pageOnFront.php

    r42228 r42343  
    1212
    1313        update_option( 'show_on_front', 'page' );
    14         update_option( 'page_for_posts', self::factory()->post->create( array( 'post_title' => 'blog-page', 'post_type' => 'page' ) ) );
    15         update_option( 'page_on_front', self::factory()->post->create( array( 'post_title' => 'front-page', 'post_type' => 'page', 'post_content' => "Page 1\n<!--nextpage-->\nPage 2"  ) ) );
     14        update_option(
     15            'page_for_posts', self::factory()->post->create(
     16                array(
     17                    'post_title' => 'blog-page',
     18                    'post_type'  => 'page',
     19                )
     20            )
     21        );
     22        update_option(
     23            'page_on_front', self::factory()->post->create(
     24                array(
     25                    'post_title'   => 'front-page',
     26                    'post_type'    => 'page',
     27                    'post_content' => "Page 1\n<!--nextpage-->\nPage 2",
     28                )
     29            )
     30        );
    1631    }
    1732
Note: See TracChangeset for help on using the changeset viewer.