Yeah, the method isn’t static but php let you also call it in that odd way without giving errors !
This is what I was searching for, I didn’t know the do_shortcode(). I’ll try it, thank you!
I have to correct the first post.
The post was never published due to an error on a plugin, now resolved.
I discovered that the problem of the -1 message after the publishing of a post as “author” is because an incompatibility between Enfold theme and the plugin WP Admin UI Customize (http://wordpress.org/plugins/wp-admin-ui-customize/)
If I only change to the main WP theme it’s ok.
If this could help I found that this is the die() method that stops the refresh of the post page after its publishing.
It can be found on wp-includes/pluggable.php
function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
if ( $query_arg )
$nonce = $_REQUEST[$query_arg];
else
$nonce = isset($_REQUEST) ? $_REQUEST : $_REQUEST;
$result = wp_verify_nonce( $nonce, $action );
if ( $die && false == $result ) {
if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX )
wp_die( -1 );
else
die( ‘-1’ ); // <— this is the -1 shown
}
do_action(‘check_ajax_referer’, $action, $result);
return $result;
}
I’m using Enfold 1.8.4
Thank you