Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi I’d like o confirm Mitevski’s finding.

    I find that in pre_get_posts get_queried_object is NULL always on category pages.
    Furtermore get_queried_object_id and query_vars[‘category_name’] do return results depending on permalinks configuration.

    I find for add_action( ‘pre_get_posts’, function( $query ) {
    the following behaviour:

    Permalinks off behaviour:
    Url: /?cat=80


    var_dump( $query->get_queried_object_id ());
    int(80) string(0) ""

    var_dump( $query->query_vars['category_name']);
    string(0) ""

    var_dump( $query->get_queried_object ());
    NULL

    Permalinks on behaviour:
    Url: /category/december


    var_dump( $query->get_queried_object_id ());
    string(0) ""

    var_dump( $query->query_vars['category_name']);
    string(8) "december"

    var_dump( $query->get_queried_object ());
    NULL

    Btw BWP Minify doesn’t run inside wp-admin, maybe you mean that you want to disable any scripts/css from wp-admin, even when they are called from the front end?

    Ooops I stand corrected.

    It runs ONLY on the login screen.

    Same issue here:

    at the login screen at /wp-admin/wp-login.php the BWP parsed css for the ‘.login h1 a’ element has ‘wrong’ image path:

    .login h1 a {
     background-image: url('../images/wordpress-logo.png?ver=20120216');
    }

    Which is the wrong path obiously.

    A pitty … No WordPress logo.
    AND a lot of 404 errors in out access.log’s … 🙁

    Finally:

    Better WordPress Minify is a great plugin but it MISSES ONE feature I’d like to have; disable BWP Minify entirely for wp-admin/*.

    I’d shouldn’t be too hard for the Developer to add this and I sure hope he will.

    THX

Viewing 3 replies - 1 through 3 (of 3 total)