Making WordPress.org


Ignore:
Timestamp:
03/03/2016 09:20:30 PM (9 years ago)
Author:
ocean90
Message:

Translate: In the Help Page plugin use the remove_action() function.

Prevents a fatal error because the method doesn't exist anymore. Fix also the class name and the cookie path.

See #1352.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-help/wporg-gp-help.php

    r2275 r2688  
    3939            update_user_meta( get_current_user_id(), $this->hide_notice, true );
    4040        }
    41         setcookie( $this->hide_notice, '1', time() + 3600*24*30, gp_url( '/' ) ); // a month
     41        setcookie( $this->hide_notice, '1', time() + 3600*24*30, SITECOOKIEPATH, COOKIE_DOMAIN ); // a month
    4242    }
    4343
     
    7272
    7373    function getting_started() {
    74         wporg_gp_help_page()->remove_action( 'after_notices' );
     74        remove_action( 'gp_after_notices', array( wporg_gp_help_page(), 'after_notices' ) );
    7575
    76         wp_redirect( GP_Help_Page_Plugin::handbook_link, 301 );
     76        wp_redirect( WPorg_GP_Help_Page::handbook_link, 301 );
    7777        exit;
    7878    }
Note: See TracChangeset for help on using the changeset viewer.