Make WordPress Core

Ticket #20444: test-wpautop.php

File test-wpautop.php, 225 bytes (added by niallkennedy, 12 years ago)

wp-load and call wpautop with a single line div

Line 
1<?php
2
3if ( ! function_exists( 'wpautop' ) )
4        require_once( dirname(__FILE__) . '/wp-load.php' );
5
6header( 'Content-Type: text/plain', true );
7
8var_dump( wpautop( '<div><p>Hello world</p><span>WordPress</span></div>' ) );
9
10?>