get paid to paste

Avoid WP Always Edit HTML Notice line 54

[tpcode]
// Get the meta value and check that it's switched on
$editInHTML = getHTMLEditStatus( $post->ID );
[/tpcode]

[tpb]CHANGE TO[/tpb]

[tpcode]
if ($post == null) {
    return;
}

// Get the meta value and check that it's switched on
$editInHTML = getHTMLEditStatus( $post->ID );
[/tpcode]

Pasted: May 1, 2014, 2:41:44 pm
Views: 1