• Resolved Mirco Babini

    (@mirkolofio)


    Since get_magic_quotes_gpc() has been useless ever since PHP 5.4.0, why are you still using it? Can be safely removed.

    FILE: public_html/wp-content/plugins/admin-menu-editor/includes/menu-editor-core.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
     3683 | WARNING | Function get_magic_quotes_gpc() is deprecated since PHP 7.4
    -------------------------------------------------------------------------------------------------------------------------
    
    FILE: public_html/wp-content/plugins/admin-menu-editor/ajax-wrapper/AjaxWrapper.php
    ------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------
     454 | WARNING | Function get_magic_quotes_gpc() is deprecated since PHP 7.4
    ------------------------------------------------------------------------------------------------------------------------
    • This topic was modified 5 years, 1 month ago by Mirco Babini.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Janis Elsts

    (@whiteshadow)

    It is used only for compatibility with old WordPress and PHP versions. While it would be great if all users upgraded their sites to an actively supported PHP version like 7.4 (i.e. the oldest actively supported version as of this writing), that is not the case in practice. A significant fraction of sites still run older versions.

    If you look at the plugin code, you’ll see that it includes a PHP version check and it only calls get_magic_quotes_gpc on versions older than 7.4.

    Thread Starter Mirco Babini

    (@mirkolofio)

    Thanks, seems perfect.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 7.4 Compatibility issue get_magic_quotes_gpc()’ is closed to new replies.