get_option(‘wpwc_reading_time’)[‘insert’]
-
Hello! Thanks for this Great PlugIn, I used it by some years.
Lastly “Query Monitor” gave me some Notice: in the home page and in the article page, it tell me Word Count “Trying to access array offset on value of type bool” in ‘wp-content/plugins/wp-word-count/public/class-wpwc-public.php’ on line 123.
# replaced line 123 from
if ($post &&(get_option(‘wpwc_reading_time’)[‘insert’] == ‘Y’) {
with line from 122 to 124, as is
$reading_time = get_option(‘wpwc_reading_time’) ;
if (is_array($reading_time)){$reading_time=$reading_time[‘insert’];}
if ($post && ($reading_time == ‘Y’ || $reading_time == true)) {
Is right?The page I need help with: [log in to see the link]
- The topic ‘get_option(‘wpwc_reading_time’)[‘insert’]’ is closed to new replies.