Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.14.18: fix admin assets bug #1187

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions 12-step-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: 12 Step Meeting List
* Plugin URI: https://wordpress.org/plugins/12-step-meeting-list/
* Description: Manage a list of recovery meetings
* Version: 3.14.17
* Version: 3.14.18
* Requires PHP: 5.6
* Author: Code for Recovery
* Author URI: https://github.com/code4recovery/12-step-meeting-list
Expand All @@ -20,7 +20,7 @@

define('TSML_PATH', plugin_dir_path(__FILE__));

define('TSML_VERSION', '3.14.17');
define('TSML_VERSION', '3.14.18');

//defining externally-defined constant + function for php intelephense
if (false) {
Expand Down
11 changes: 1 addition & 10 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ function tsml_assets()
{
global $post_type, $tsml_street_only, $tsml_programs, $tsml_strings, $tsml_program, $tsml_google_maps_key,
$tsml_mapbox_key, $tsml_mapbox_theme, $tsml_distance_units, $tsml_defaults, $tsml_columns, $tsml_nonce;

// TODO: verify this doesn't cause any other issues
$types = [
'tsml_meeting',
'tsml_location',
'tsml_group',
];
if (isset($post_type) && !in_array($post_type, $types)) {
return;
}

//google maps api
if ($tsml_google_maps_key) {
wp_enqueue_script('google_maps_api', '//maps.googleapis.com/maps/api/js?key=' . $tsml_google_maps_key);
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: Code for Recovery
Requires at least: 3.2
Requires PHP: 5.6
Tested up to: 6.0
Stable tag: 3.14.17
Stable tag: 3.14.18

This plugin helps twelve step recovery programs list their meetings. It standardizes addresses, and displays results in a searchable list and map.

Expand Down Expand Up @@ -287,6 +287,9 @@ Yes, add the following to your theme's functions.php. Make sure you've enabled t

== Changelog ==

= 3.14.18 =
* Fix settings page assets bug with WP 6.3 [more info](https://github.com/code4recovery/12-step-meeting-list/issues/1185)

= 3.14.17 =
* Add Underearners Anonymous [more info](https://github.com/code4recovery/12-step-meeting-list/issues/1169)
* Add TSML UI shortcode to FAQ [more info](https://github.com/code4recovery/12-step-meeting-list/issues/1155)
Expand Down