Plugin Directory

Changeset 3123335


Ignore:
Timestamp:
07/22/2024 03:19:49 PM (16 months ago)
Author:
claudiosanches
Message:

Prevent fatal error

Location:
restrict-content
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • restrict-content/tags/3.2.11/restrictcontent.php

    r3120662 r3123335  
    997997    'admin_notices',
    998998    function () {
     999        if ( ! function_exists( 'rcp_is_rcp_admin_page' ) ) {
     1000            require_once plugin_dir_path( __FILE__ ) . 'core/includes/misc-functions.php';
     1001        }
     1002
    9991003        // Stop if isn't a RCP page.
    10001004        if ( ! rcp_is_rcp_admin_page() ) {
  • restrict-content/trunk/restrictcontent.php

    r3120662 r3123335  
    997997    'admin_notices',
    998998    function () {
     999        if ( ! function_exists( 'rcp_is_rcp_admin_page' ) ) {
     1000            require_once plugin_dir_path( __FILE__ ) . 'core/includes/misc-functions.php';
     1001        }
     1002
    9991003        // Stop if isn't a RCP page.
    10001004        if ( ! rcp_is_rcp_admin_page() ) {
Note: See TracChangeset for help on using the changeset viewer.