Skip to content

Commit

Permalink
Updates build process
Browse files Browse the repository at this point in the history
  • Loading branch information
kylephillips committed Mar 4, 2024
1 parent e0a3100 commit cf05396
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 15 deletions.
3 changes: 1 addition & 2 deletions app/Entities/Listing/Listing.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ public function __construct($post_type)
*/
public static function admin_menu($post_type)
{
$class_name = get_class();
$classinstance = new $class_name($post_type);
$classinstance = new \NestedPages\Entities\Listing\Listing($post_type);
return [&$classinstance, "listPosts"];
}

Expand Down
3 changes: 2 additions & 1 deletion app/Entities/Listing/ListingRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function visiblePages($post_type)
$meta = get_user_meta(get_current_user_id(), 'np_visible_posts', true);
if ( $meta == '1' ) return [];
$visible = unserialize($meta);
if ( !$visible || !isset($visible[$post_type]) ) $visible[$post_type] = [];
if ( !$visible ) $visible = [];
if ( !isset($visible[$post_type]) ) $visible[$post_type] = [];
return $visible[$post_type];
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/nestedpages.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/images/checkbox-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/js/nestedpages.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/nestedpages.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/nestedpages.settings.min.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
var gulp = require('gulp');
var sass = require('gulp-sass');
var sass = require('gulp-sass')(require('sass'));
var autoprefix = require('gulp-autoprefixer');
var livereload = require('gulp-livereload');
var notify = require('gulp-notify');
var minifycss = require('gulp-minify-css');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
Expand Down Expand Up @@ -55,8 +54,7 @@ var styles = function(){
.pipe(autoprefix('last 5 version'))
.pipe(minifycss({keepBreaks: false}))
.pipe(gulp.dest(css))
.pipe(livereload())
.pipe(notify('Nested Pages styles compiled & compressed.'));
.pipe(livereload());
}

/**
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
"gulp-concat": "^2.6.1",
"gulp-livereload": "4.0.2",
"gulp-minify-css": "1.2.4",
"gulp-notify": "3.2.0",
"gulp-sass": "4.1.1",
"gulp-sass": "5.1.0",
"gulp-uglify": "3.0.2",
"gulp-watch": "5.0.1",
"node-sass": "^4.14.1",
"pump": "3.0.0"
"pump": "3.0.0",
"sass": "^1.70.0"
}
}

0 comments on commit cf05396

Please sign in to comment.