Changeset 1125
- Timestamp:
- 01/11/2015 10:33:20 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-help/wporg-help.php
r947 r1125 27 27 28 28 function is_notice_hidden() { 29 return ( gp_array_get( $_COOKIE, $this->hide_notice ) || ( GP::$user->logged_in() && GP::$user-> get_meta( $this->hide_notice ) ) );29 return ( gp_array_get( $_COOKIE, $this->hide_notice ) || ( GP::$user->logged_in() && GP::$user->current()->get_meta( $this->hide_notice ) ) ); 30 30 } 31 31 32 32 function hide_notice() { 33 33 if ( GP::$user->logged_in() ) { 34 GP::$user-> set_meta( $this->hide_notice, true );34 GP::$user->current()->set_meta( $this->hide_notice, true ); 35 35 } 36 36 setcookie( $this->hide_notice, '1', time() + 3600*24*30, gp_url( '/' ) ); // a month … … 52 52 return false; 53 53 }); 54 </script> 54 </script> 55 55 <?php 56 56 }
Note: See TracChangeset
for help on using the changeset viewer.