Changeset 11640 for sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/callout-boxes.php
- Timestamp:
- 03/04/2022 03:47:24 AM (3 years ago)
- File:
-
- 1 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" ) );
Note: See TracChangeset
for help on using the changeset viewer.