Changeset 11640
- Timestamp:
- 03/04/2022 03:47:24 AM (3 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/callout-boxes.php
r5465 r11640 23 23 */ 24 24 public function __construct() { 25 $this->shortcodes = array(26 'info' => __( 'Note:', 'wporg' ),27 'tip' => __( 'Tip:', 'wporg' ),28 'alert' => __( 'Alert:', 'wporg' ),29 'tutorial' => __( 'Tutorial:', 'wporg' ),30 'warning' => __( 'Warning:', 'wporg' )31 );32 33 25 add_action( 'init', array( $this, 'register_shortcodes' ) ); 34 26 } … … 40 32 */ 41 33 public function register_shortcodes() { 34 $this->shortcodes = array( 35 'info' => __( 'Note:', 'wporg' ), 36 'tip' => __( 'Tip:', 'wporg' ), 37 'alert' => __( 'Alert:', 'wporg' ), 38 'tutorial' => __( 'Tutorial:', 'wporg' ), 39 'warning' => __( 'Warning:', 'wporg' ) 40 ); 41 42 42 foreach ( array_keys( $this->shortcodes ) as $name) { 43 43 add_shortcode( $name, array( $this, "{$name}_shortcode" ) ); -
sites/trunk/wordpress.org/public_html/wp-content/plugins/locale-detection/locale-detection.php
r10982 r11640 24 24 $detector = new Detector(); 25 25 26 add_action( 'locale', [ $detector, 'get_locale' ] ); 26 add_filter( 'locale', [ $detector, 'get_locale' ] ); 27 add_filter( 'pre_determine_locale', [ $detector, 'get_locale' ] ); 27 28 } 28 add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 1 ); 29 30 // Override the locale ASAP. 31 init();
Note: See TracChangeset
for help on using the changeset viewer.