Skip to content

Commit

Permalink
CF7 submission special tags bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisblakley committed May 16, 2018
1 parent 779b2c9 commit 42e3e23
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion Nebula-Child/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/login.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/pre.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/tinymce.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/sw.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//BEGIN Automated edits. These will be automatically overwritten.
var CACHE_NAME = 'nebula-nebula-child-32369'; //Wednesday, May 16, 2018 11:19:26 AM
var CACHE_NAME = 'nebula-nebula-child-55583'; //Wednesday, May 16, 2018 12:50:59 PM
var OFFLINE_URL = 'https://gearside.com/nebula/offline/';
var OFFLINE_IMG = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/offline.svg';
var META_ICON = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/meta/android-chrome-512x512.png';
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
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.
Author: Pinckney Hugo Group
Author URI: http://www.pinckneyhugo.com
Version: 5.12.16.4719
Version: 5.12.16.5355
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
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
Expand Down
2 changes: 1 addition & 1 deletion inc/data/nebula_theme.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.12.14.7094",
"version": "5.12.16.5354",
"details_url": "https://github.com/chrisblakley/Nebula/commits/master",
"download_url": "https://github.com/chrisblakley/Nebula/archive/master.zip"
}
20 changes: 3 additions & 17 deletions libs/Functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3123,16 +3123,6 @@ public function cf7_custom_special_mail_tags($output, $name, $html){
return $site_owner . '<wordpress@' . $this->url_components('domain') . '>';
}

//IP Geolocation
if ( $name === '_nebula_ip_geo' ){
if ( $this->ip_location() ){
$ip_location = $this->ip_location('all');
return $ip_location->city . ', ' . $ip_location->region_name;
} else {
return '';
}
}

//Debug Info
if ( $name === 'debuginfo' || $name === '_debuginfo' || $name === '_nebula_debuginfo' || $name === '_nebula_debug' ){
$debug_data = 'Nebula ' . $this->version('full') . '<br />';
Expand Down Expand Up @@ -3192,19 +3182,15 @@ public function cf7_custom_special_mail_tags($output, $name, $html){
$debug_data .= '<br />';
}

//IP address (and geolocation if available)
//IP address
$debug_data .= 'IP: ' . $this->get_ip_address();
if ( $this->ip_location() ){
$ip_location = $this->ip_location('all');
$debug_data .= ' (' . $ip_location->city . ', ' . $ip_location->region_name . ')';
}
$notable_poi = $this->poi();
if ( !empty($notable_poi) ){
$debug_data .= '[' . $notable_poi . ']';
$debug_data .= ' [' . $notable_poi . ']';
}
$debug_data .= '<br />';

return $debug_data;
return apply_filters('nebula_cf7_debug_data', $debug_data);
}

return $output;
Expand Down
4 changes: 2 additions & 2 deletions style.css

Large diffs are not rendered by default.

0 comments on commit 42e3e23

Please sign in to comment.