• #1: errors are logged when sorting by post title and the post title has an apostrophe or single quote. Quick fix is to change
    $sql .= "AND {$orderby} {$type} {$post->$orderby}";
    to
    $sql .= "AND {$orderby} {$type} '" . addslashes($post->$orderby) . "' ";

    #2: On WPML sites it will go between posts of different languages instead of staying in the current language. Quick fix is to change
    if ( current_user_can( 'edit_post', $post->ID ) ) {
    to

    $my_post_language_details = apply_filters( 'wpml_post_language_details', NULL, $post->ID ) ;
    if ( current_user_can( 'edit_post', $post->ID ) && $my_post_language_details['language_code'] === ICL_LANGUAGE_CODE ) {

    Neither of these are ideal, especially the WPML since it’ll break if WPML is deactivated, but this should give you the info you need to get it done correctly.

    Unless this plugin is dead. Is it?

Viewing 1 replies (of 1 total)
  • Hi theMikeD,
    I find this plugin extremely useful when I edit pages on my garden site.
    I also noticed the bugs you mention and fixed them.
    Apart from that the plugin works fine on WP latest version 4.9.4 and saves me a lot of time. Pity it is no longer maintained.

Viewing 1 replies (of 1 total)
  • The topic ‘Two bugs. Is this a dead plugin?’ is closed to new replies.