• Getting these warnings in debug.log

    [18-Jan-2025 16:35:30 UTC] PHP Warning:  Attempt to read property "post_type" on null in .../wp-content/plugins/job-postings/include/class-job-entry.php on line 391
    [18-Jan-2025 16:36:36 UTC] PHP Warning: Attempt to read property "post_type" on null in .../wp-content/plugins/job-postings/include/class-job-entry.php on line 391

    Current code:

    390: $screen = get_current_screen(); //verify which page we're on
    391: if ('job-entry' == $screen->post_type && 'edit' == $screen->base ) {

    A fix could be similar to this:

    if ( !empty( $screen ) && 'job-entry' == $screen->post_type && 'edit' == $screen->base ) {

    Jobs for WordPress 2.7.11, WordPress 6.4.5

  • You must be logged in to reply to this topic.