Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/1.0.0-beta.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
perruche committed Nov 16, 2020
2 parents dd8f0de + cf6965e commit d63d882
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@studiometa/create-wordpress-project",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "A generator to kickstart a WordPress project in a few seconds! ⚡",
"bin": "cli.js",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ManagerFactory {
/**
* Init managers
*
* @param array $managers to init
* @param array $managers to init.
* @return void
*/
static public function init( array $managers ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
<?php
/**
* Interface for Managers
*
* @package Studiometa
*/

namespace Studiometa\Managers;

/** Interface **/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ThemeManager implements ManagerInterface {
public function run() {
add_theme_support( 'post-thumbnails' );
add_theme_support( 'menus' );
add_theme_support( 'title-tag' );

add_filter( 'timber/context', array( $this, 'add_app_env_to_context' ) );
add_filter( 'timber/context', array( $this, 'add_site_to_context' ) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function posts_by_category_slug( $slug, $limit = 10, $exclude = array(),

// Set sane defaults so we don't do full table scans.
if ( $limit <= 0 || $limit > 100 ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
trigger_error( __CLASS__ . ' ' . __FUNCTION__ . ' : $limit parameter should not be over 100 to avoid full sql table scans', E_USER_WARNING );
$limit = 100;
}
Expand Down Expand Up @@ -70,6 +71,7 @@ public function latest_posts( $limit = 10, $post_types = self::POST_TYPES, array

// Set sane defaults so we don't do full table scans.
if ( $limit <= 0 || $limit > 100 ) {
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_trigger_error
trigger_error( __CLASS__ . ' ' . __FUNCTION__ . ' : $limit parameter should not be over 100 to avoid full sql table scans', E_USER_WARNING );
$limit = 100;
}
Expand Down
1 change: 1 addition & 0 deletions template/web/wp-content/themes/<%= slug %>/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
* Theme Name: <%= name %>
* Description: <%= description %>
* Author: Studio Meta <[email protected]> (https://www.studiometa.fr)
* Version : 1.0.0-beta.4
*/

0 comments on commit d63d882

Please sign in to comment.