Changeset 2148712
- Timestamp:
- 08/30/2019 09:23:24 PM (7 years ago)
- Location:
- user-shortcodes-plus
- Files:
-
- 23 added
- 3 edited
-
tags/2.0.2 (added)
-
tags/2.0.2/assets (added)
-
tags/2.0.2/assets/css (added)
-
tags/2.0.2/assets/css/admin.css (added)
-
tags/2.0.2/assets/js (added)
-
tags/2.0.2/assets/js/admin.js (added)
-
tags/2.0.2/assets/js/editor.js (added)
-
tags/2.0.2/includes (added)
-
tags/2.0.2/includes/Admin (added)
-
tags/2.0.2/includes/Admin/TinyMCE (added)
-
tags/2.0.2/includes/Admin/TinyMCE/AddShortcodeButton.php (added)
-
tags/2.0.2/includes/Config (added)
-
tags/2.0.2/includes/Config/Shortcodes.php (added)
-
tags/2.0.2/includes/Shortcodes (added)
-
tags/2.0.2/includes/Shortcodes/User.php (added)
-
tags/2.0.2/includes/Shortcodes/UserAvatar.php (added)
-
tags/2.0.2/includes/Shortcodes/UserMeta.php (added)
-
tags/2.0.2/includes/Templates (added)
-
tags/2.0.2/includes/Templates/admin-tinymce-modal.html.php (added)
-
tags/2.0.2/index.php (added)
-
tags/2.0.2/readme.txt (added)
-
tags/2.0.2/user-shortcodes-plus.php (added)
-
trunk/assets/js/editor.js (added)
-
trunk/includes/Shortcodes/UserAvatar.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/user-shortcodes-plus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
user-shortcodes-plus/trunk/includes/Shortcodes/UserAvatar.php
r1638256 r2148712 13 13 $atts = shortcode_atts( array( 14 14 'id' => get_current_user_id(), 15 'size' => 96 15 16 ), $atts ); 16 17 17 18 $userdata = get_userdata( $atts[ 'id' ] ); 18 19 19 return get_avatar( $userdata->user_email );20 return get_avatar( $userdata->user_email, $atts[ 'size' ] ); 20 21 } 21 22 -
user-shortcodes-plus/trunk/readme.txt
r1638256 r2148712 4 4 Donate link: http://kylebjohnson.me/plugins 5 5 Requires at least: 4.5 6 Tested up to: 4.7.37 Stable tag: 2.0. 16 Tested up to: 5.2.2 7 Stable tag: 2.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 == Changelog == 72 72 73 = 2.0.2 = 74 * Add autocomplete support for the Block Editor (Gutenberg). 75 73 76 = 2.0.1 = 74 77 * Fixed a bug with showing the TinyMCE Button on new posts/pages. … … 88 91 == Upgrade Notice == 89 92 90 = 2.0.0 = 91 Added new shortcodes for the user's website and bio. Also added a TinyMCE button. 92 93 = 1.0.1 = 94 Added new shortcodes for the user's avatar. 93 = 2.0.2 = 94 * Add autocomplete support for the Block Editor (Gutenberg). -
user-shortcodes-plus/trunk/user-shortcodes-plus.php
r1638256 r2148712 30 30 add_action( 'admin_init', array( $this, 'admin_init' ) ); 31 31 add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); 32 add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) ); 32 33 } 33 34 … … 51 52 wp_register_script( 'kbj_user_shortcodes_plus_admin_js', self::url( 'assets/js/admin.js' ), array( 'jquery' ), self::VERSION ); 52 53 wp_enqueue_script( 'kbj_user_shortcodes_plus_admin_js' ); 54 } 55 56 public function enqueue_block_editor_assets() 57 { 58 wp_enqueue_script( 'kbj_user_shortcodes_plus_block_editor_js', self::url( 'assets/js/editor.js' ), array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ) ); 59 wp_localize_script( 'kbj_user_shortcodes_plus_block_editor_js', 'userShortcodesPlus', array_values( KBJ_UserShortcodesPlus::config( 'Shortcodes' ) ) ); 53 60 } 54 61
Note: See TracChangeset
for help on using the changeset viewer.