Automattic/jetpack

Contact Info Widget: pre-fill API key when it has already been set for another Contact Info widget

開放

#11,469 建立於 2019年3月4日

 (3 則留言) (0 個反應) (0 位負責人)PHP (877 個分叉)user submission
EnhancementGood For CommunityHacktoberfest[Feature] Extra Sidebar Widgets[Pri] Low

倉庫指標

星標
 (1,808 顆星)
PR 合併指標
 (平均合併 4天 5小時) (30 天內合併 645 個 PR)

描述

Steps to reproduce the issue

  1. Go to Appearance > Widgets
  2. Add a Contact Info widget to your site.
  3. In that widget, set up the map using a Google Maps API key.
  4. Now drag an additional widget to the widget area.

At that point, and since we've already gone through the steps to set up a key, the new widget should already be set to use that key, thus saving us time.

Similarly, it should also be pre-filled when it's already be set thanks to the jetpack_google_maps_api_key filter.

貢獻者指南