Skip to content

Commit 42e3e23

Browse files
committed
CF7 submission special tags bugfix
1 parent 779b2c9 commit 42e3e23

File tree

11 files changed

+14
-28
lines changed

11 files changed

+14
-28
lines changed

Nebula-Child/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/tinymce.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//BEGIN Automated edits. These will be automatically overwritten.
2-
var CACHE_NAME = 'nebula-nebula-child-32369'; //Wednesday, May 16, 2018 11:19:26 AM
2+
var CACHE_NAME = 'nebula-nebula-child-55583'; //Wednesday, May 16, 2018 12:50:59 PM
33
var OFFLINE_URL = 'https://gearside.com/nebula/offline/';
44
var OFFLINE_IMG = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/offline.svg';
55
var META_ICON = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/meta/android-chrome-512x512.png';

assets/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
55
Author: Pinckney Hugo Group
66
Author URI: http://www.pinckneyhugo.com
7-
Version: 5.12.16.4719
7+
Version: 5.12.16.5355
88
License: GNU General Public License v2.0 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready

inc/data/nebula_theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.12.14.7094",
2+
"version": "5.12.16.5354",
33
"details_url": "https://github.com/chrisblakley/Nebula/commits/master",
44
"download_url": "https://github.com/chrisblakley/Nebula/archive/master.zip"
55
}

libs/Functions.php

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3123,16 +3123,6 @@ public function cf7_custom_special_mail_tags($output, $name, $html){
31233123
return $site_owner . '<wordpress@' . $this->url_components('domain') . '>';
31243124
}
31253125

3126-
//IP Geolocation
3127-
if ( $name === '_nebula_ip_geo' ){
3128-
if ( $this->ip_location() ){
3129-
$ip_location = $this->ip_location('all');
3130-
return $ip_location->city . ', ' . $ip_location->region_name;
3131-
} else {
3132-
return '';
3133-
}
3134-
}
3135-
31363126
//Debug Info
31373127
if ( $name === 'debuginfo' || $name === '_debuginfo' || $name === '_nebula_debuginfo' || $name === '_nebula_debug' ){
31383128
$debug_data = 'Nebula ' . $this->version('full') . '<br />';
@@ -3192,19 +3182,15 @@ public function cf7_custom_special_mail_tags($output, $name, $html){
31923182
$debug_data .= '<br />';
31933183
}
31943184

3195-
//IP address (and geolocation if available)
3185+
//IP address
31963186
$debug_data .= 'IP: ' . $this->get_ip_address();
3197-
if ( $this->ip_location() ){
3198-
$ip_location = $this->ip_location('all');
3199-
$debug_data .= ' (' . $ip_location->city . ', ' . $ip_location->region_name . ')';
3200-
}
32013187
$notable_poi = $this->poi();
32023188
if ( !empty($notable_poi) ){
3203-
$debug_data .= '[' . $notable_poi . ']';
3189+
$debug_data .= ' [' . $notable_poi . ']';
32043190
}
32053191
$debug_data .= '<br />';
32063192

3207-
return $debug_data;
3193+
return apply_filters('nebula_cf7_debug_data', $debug_data);
32083194
}
32093195

32103196
return $output;

0 commit comments

Comments
 (0)