Skip to content

Commit

Permalink
Added security blocking option, dynamic property deprecation update, …
Browse files Browse the repository at this point in the history
…CF7 submission history list fix, meta imagery URL update
  • Loading branch information
chrisblakley committed Feb 4, 2025
1 parent 662609a commit fe6c20b
Show file tree
Hide file tree
Showing 20 changed files with 149 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nebula-wp",
"title": "Nebula",
"description": "Advanced Starter WordPress Theme for Developers",
"version": "12.8.30.715",
"version": "12.9.4.493",
"homepage": "https://gearside.com/nebula/",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion Nebula-Child/assets/css/admin.css

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

2 changes: 1 addition & 1 deletion Nebula-Child/resources/sw.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//BEGIN automated edits. These will be automatically overwritten.
const THEME_NAME = 'nebula-child';
const NEBULA_VERSION = 'v12.8.30.715'; //Thursday, January 30, 2025 5:09:28 PM
const NEBULA_VERSION = 'v12.9.4.493'; //Tuesday, February 4, 2025 11:50:15 AM
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';
Expand Down
4 changes: 2 additions & 2 deletions 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/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Theme URI: https://nebula.gearside.com
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: Nebula
Version: 12.8.30.715
Version: 12.9.4.493
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebula
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": "12.8.30.715",
"version": "12.9.4.493",
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
}
2 changes: 1 addition & 1 deletion inc/metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
},
"headline": "<?php echo esc_html(get_the_title()); ?>",

<?php $post_thumbnail_meta = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full') . $cache_query; ?>
<?php $post_thumbnail_meta = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full'); ?>
<?php if ( !empty($post_thumbnail_meta) ): ?>
"image": {
"@type": "ImageObject",
Expand Down
8 changes: 4 additions & 4 deletions libs/Admin/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2102,10 +2102,10 @@ public function cf7_storage_output($post){
$submission_label = 'Invalid Submission &raquo;';
$submission_icon = '<i class="fa-solid fa-fw fa-xmark"></i>';

if ( get_post_status() == 'submission' ){ //Only if it was a successful submission originally (and not moved from another status) //@todo "Nebula" 0: Update strpos() to str_contains() in PHP8
if ( strpos(get_the_title(), '(Invalid)') !== false ){
if ( get_post_status($post->ID) == 'submission' ){ //Only if it was a successful submission originally (and not moved from another status)
if ( strpos(get_the_title($post->ID), '(Invalid)') !== false ){
$invalid_count++;
} elseif ( strpos(get_the_title(), '(Mail Failed)') !== false ){
} elseif ( strpos(get_the_title($post->ID), '(Mail Failed)') !== false ){
$invalid_count++;
//$success_count++;
$submission_class = 'caution-submission-item'; //Caution because Nebula captures the form, but the email was not sent
Expand All @@ -2123,7 +2123,7 @@ public function cf7_storage_output($post){

//get_the_ID() is the "overall" post that is being viewed on the page
//$post->ID is the post in this loop of all the submissions from this user
if ( get_the_ID() == $post->ID ){
if ( get_the_ID() == $post->ID ){ //If the post in the list is the submission we are viewing the full details of
$submission_class .= ' this-submission';
$submission_label = 'This ' . str_replace(' &raquo;', '', $submission_label);
$submission_icon = ( get_post_status() == 'submission' && strpos(get_the_title(), '(Invalid)') === false )? '<i class="fa-solid fa-fw fa-circle-check"></i><i class="fa-solid fa-arrow-right"></i>' : '<i class="fa-solid fa-fw fa-circle-xmark"></i><i class="fa-solid fa-arrow-right"></i>';
Expand Down
Loading

0 comments on commit fe6c20b

Please sign in to comment.