Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter antwal

    (@antwal)

    Tryed to use custom hook, not working!!!

    Thread Starter antwal

    (@antwal)

    I have change this lines:

    // Allow alternative splash page
    				if ( file_exists( WP_CONTENT_DIR . '/wp-maintenance-mode.php' ) )
    					include( WP_CONTENT_DIR . '/wp-maintenance-mode.php' );
    				else
    					include('site.php');

    with this lines:

    // Allow alternative splash page
    				if ( file_exists( get_template_directory() . '/wp-maintenance-mode.php' ) )
    					include( get_template_directory() . '/wp-maintenance-mode.php' );
    				else
    					include('site.php');

    and load the custom page on my current theme, it working very well.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Some problems with WP 3.9.x and PHP 5.4’ is closed to new replies.