Changeset 1752
- Timestamp:
- 07/18/2015 02:52:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/translate.wordpress.org/includes/gp-plugins/wporg-specifics.php
r1133 r1752 11 11 $this->add_action( 'before_login_form' ); 12 12 $this->add_filter( 'gp_url_profile', array( 'args' => 2 ) ); 13 $this->add_ filter( 'routes' );13 $this->add_action( 'init' ); 14 14 $this->add_filter( 'projects', array( 'args' => 2 ) ); 15 15 } 16 16 17 17 function before_login_form() { 18 echo '<span class="secondary">' . __( 'Log in with your wordpress.org forums account. If you don’t have one, you can <a href="http ://wordpress.org/support/register.php">register at the forums.</a>' ) . '</span>';18 echo '<span class="secondary">' . __( 'Log in with your wordpress.org forums account. If you don’t have one, you can <a href="https://wordpress.org/support/register.php">register at the forums.</a>' ) . '</span>'; 19 19 } 20 20 … … 23 23 } 24 24 25 function routes( $routes ) { 26 unset( $routes['get:/profile/(.+?)'] ); 27 return $routes; 25 function init() { 26 GP::$router->remove( '/profile/(.+?)' ); 28 27 } 29 28
Note: See TracChangeset
for help on using the changeset viewer.