Actually, I had a typo. Your solution worked! This includes the contents of data.php successfully:
<?php
include(ABSPATH . ‘wp-content/data.php’);
echo “fail”;
?>
Thanks!
Thanks for the suggestion.
Oddly, replacing:
<?php
include(‘/wp-content/data.php’);
echo “fail”;
?>
With:
<?php
include(ABSPATH . ‘wp-content/data.php’);
echo “fail”;
?>
Did not change the outcome. The text “fail” is still rendered on the page.