Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 2 deletions.
  1. +2 −2 acf-coordinates.php
  2. +2 −0 fields.php
View
4 acf-coordinates.php
@@ -1,9 +1,9 @@
<?php
/*
-Plugin Name: Advanced Custom Fields: Coordinates field
+Plugin Name: Advanced Custom Fields: Coordinates
Plugin URI:
-Description: Adds a Coordinates field to Advanced Custom Fields. This field allows you to find the coordinates of a desired location.
+Description: Adds a coordinates map field to Advanced Custom Fields. This field allows you to find the coordinates of a location.
Version: 0.7.0
Author: Stupid Studio
Author URI: http://stupid-studio.com/
View
2 fields.php
@@ -86,6 +86,8 @@ public function create_field($field)
$zoom = $field['zoom'];
// generate a unique id and put it as suffix to the fields name
+ // the field name includes [ and ] so we just replace them with
+ // more proper values for use in an html attribute
$ptrns = array('/\[/', '/\]/');
$rplcs = array('_', '');
$uid = preg_replace($ptrns, $rplcs, $field['name']);

No commit comments for this range

Something went wrong with that request. Please try again.