Changeset 12624 for sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/gp-translation-helpers.php
- Timestamp:
- 06/06/2023 09:10:32 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/gp-translation-helpers/gp-translation-helpers.php
r12405 r12624 38 38 require_once __DIR__ . '/includes/class-wporg-customizations.php'; 39 39 require_once __DIR__ . '/includes/class-gp-custom-locale-reasons.php'; 40 require_once __DIR__ . '/includes/class-gp-openai-review.php'; 40 41 41 add_action( 'gp_init', array( 'GP_Translation_Helpers', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core. 42 add_action( 'gp_init', array( 'GP_Sidebar', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core. 43 add_action( 'gp_init', array( 'WPorg_GlotPress_Notifications', 'init' ) ); // todo: include this class in a different plugin. 42 if ( ! wp_doing_ajax() ) { 43 add_action( 'gp_init', array( 'GP_Translation_Helpers', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core. 44 add_action( 'gp_init', array( 'GP_Sidebar', 'init' ) ); // todo: remove this when this plugin will be merged in the GlotPress core. 45 add_action( 'gp_init', array( 'WPorg_GlotPress_Notifications', 'init' ) ); // todo: include this class in a different plugin. 46 add_filter( 'gp_enable_changesrequested_status', '__return_true' ); // todo: remove this filter when this plugin will be merged in the GlotPress core. 47 } 48 44 49 add_action( 'gp_init', array( 'WPorg_GlotPress_Customizations', 'init' ) ); // todo: include this class in a different plugin. 45 add_ filter( 'gp_enable_changesrequested_status', '__return_true' ); // todo: remove this filter when this plugin will be merged in the GlotPress core.50 add_action( 'wp_ajax_fetch_openai_review', array( 'GP_Translation_Helpers', 'fetch_openai_review' ) );
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)