title: Wordpress 4.9.8 errors: constant STYLESHEETPATH
body: <p>I installed latest versions of apache2, wordpress (4.9.8), php (7.2).  Then installed a plugin from <a href="https://wpbooking.org/" rel="nofollow noreferrer">wpbooking.org</a>.  The minimum requirements for their plugin is 4.9.8.  As soon as it is enabled, these warnings appear:</p>
  
  <pre><code>Warning: Use of undefined constant STYLESHEETPATH - assumed 'STYLESHEETPATH' (this will throw an Error in a future version of PHP) in /home/jamie/websites/italy/wp-includes/template.php on line 634
  
  Warning: Use of undefined constant TEMPLATEPATH - assumed 'TEMPLATEPATH' (this will throw an Error in a future version of PHP) in /home/jamie/websites/italy/wp-includes/template.php on line 637
  </code></pre>
  
  <p>I've disabled php errors (or so I think) in wp-config.php <code>error_reporting(0);</code>, but they still persist.  There are <a href="https://wordpress.org/support/topic/use-of-undefined-constant-stylesheetpath/" rel="nofollow noreferrer">some suggestions</a> that child template themes has issues, but not really a whole lot.  The wpbooking.org has a support forum, but this error is not mentioned.  Not a lot googling either, so I figured I'd ask here to see if:</p>
  
  <ol>
  <li>Anyone knows how to disable these errors? </li>
  <li>Anyone knows if these are wordpress or plugin errors?</li>
  </ol>