Skip to content

Commit

Permalink
Release 1.5.0 (PR #303) from Getbeans/release/1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hellofromtonya authored Jul 10, 2018
2 parents 8faa874 + dd21ca3 commit ff8c132
Show file tree
Hide file tree
Showing 368 changed files with 10,257 additions and 6,887 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*.DS_Store
composer.lock
/node_modules/
/vendor/
/logs/
/reports/
9 changes: 5 additions & 4 deletions 404.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<?php
/**
* This core file should strictly be overwritten via your child theme.
* This core file should only be overwritten via your child theme.
*
* We strongly recommend to read Beans documentation to find out more how to
* customize Beans theme.
* We strongly recommend to read the Beans documentation to find out more about
* how to customize the Beans theme.
*
* @author Beans
* @link http://www.getbeans.io
* @link https://www.getbeans.io
* @package Beans\Framework
*/

beans_load_document();
170 changes: 170 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
# Beans Changelog

## 2018.07.10 - version 1.5.0

This release candidate includes security, web accessibility, code quality improvements, performance improvements, and bug fixes. The entire framework is now WPCS compliant. The APIs are now fully and thoroughly well-tested. All found issues are resolved. New functionality is added.

### Improved
* Improved web accessibility by adding skip links, ARIA, labels, tabs, and more.
* Improved the performance of the APIs by reducing expensive processes, memory usage, and execution time.
* Improved the APIs by adding thorough unit and integration test suites.
* Improved the APIs by adding type hinting, reducing redundant code, and removing unused code.
* Improved Beans by making it WPCS compliant.
* Improved CSS compiler to have one block of declarations per line.
* Improved security by auditing and applying escaping and sanitizing best practices.
* Improved the Actions API by no longer storing actions in encoded strings.
* Improved code documentation and readability.

### Updated
* Updated the language's tm-beans.pot file.
* Updated UIkit to version 2.27.5 (see [UIkit changelog](https://github.com/uikit/uikit/blob/v2/master/CHANGELOG.md#2275) for more information).

### Added
* Added `beans_str_ends_with()` to check if the given string ends with the given substring(s).
* Added `beans_str_starts_with()` to check if the given string starts with the given substring(s).
* Added `beans_multi_array_key_exists()` to check if a key or index exists in a multi-dimensional array.
* Added `beans_join_arrays()` to join two arrays together.
* Added `beans_array_unique()` to remove duplicate values and re-index the array.
* Added `beans_join_arrays_clean()` to join two arrays, remove the duplicate values and empties, and provide an option to re-index the clean array.
* Added `beans_scandir()` to scan the given directory path, list all the files and directories, and remove the `.` and `..` files.
* Added `beans_uikit_get_all_components()` to check all of the UIkit components for the given type.
* Added `beans_uikit_get_all_dependencies()` to check all of the UIkit dependencies for the given component(s).
* Added `beans_get_widget_area_output()` to replace `beans_get_widget_area()`.
* Added `beans_add_compiler_options_to_settings()` to instantiate `_Beans_Compiler_Options` through a hook instead of on file load.
* Added `beans_add_page_assets_compiler()` to instantiate `__Beans_Page_Compiler` through a hook instead of on file load.
* Added `beans_add_image_options_to_settings()` to instantiate `___Beans_Image_Options` through a hook instead of on file load.
* Added `beans_has_primary_sidebar()` to check if the given layout has a primary sidebar.
* Added `beans_has_secondary_sidebar()` to check if the given layout has a secondary sidebar.
* Added `beans_skip_links_list()` to filter the skip links.
* Added `beans_output_skip_links()` to render the skip links.
* Added `beans_accessibility_skip_link_fix()` to enqueue skip link fix script for IE 11.
* Added many new private functions.

### Changes
* `beans_add_action()` returns `false` when the action is not added via `add_action`.
* `beans_add_smart_action()` returns `false` when the action is not added via `add_action`.
* `beans_modify_action()` returns `false` when hook, callback, priority, and args are not given.
* `beans_modify_action_hook()` returns `false` when the hook is empty or not a string.
* `beans_modify_action_callback()` returns `false` when the callback is empty.
* `beans_replace_action()` returns `false` when hook, callback, priority, and args are not given.
* `beans_replace_action_hook()` returns `false` when the hook is empty or not a string.
* `beans_replace_action_callback()` returns `false` when the callback is empty.
* `beans_remove_action()` sets "removed" to the default when no current action exists.
* `beans_reset_action()` bails out if the action does not need to be reset.
* Unset the global variable in `beans_selfclose_markup()` to reduce memory usage.
* `beans_wrap_markup()` bails out and returns `false` if the given `$tag` is empty.
* `beans_wrap_inner_markup()` bails out and returns `false` if the given `$tag` is empty.
* `beans_add_attribute()` returns an instance of `_Beans_Attribute`.
* `beans_replace_attribute()` replaces all values when the `value` argument is empty.
* `beans_replace_attribute()` returns an instance of `_Beans_Attribute`.
* `beans_remove_attribute()` returns an instance of `_Beans_Attribute`.
* Moved the API's HTML to view files to improve code quality.
* Changes to private functions and methods are not noted here.

### Fixed
* Fixed `depedencies` typo in Compiler's configuration (now `dependencies`). Provided fallback.
* Fixed Customizer Preview Tools.
* Fixed UIkit API bug when not returning all dependency components.
* Fixed Beans Image Editor for ARRAY_A.
* Fixed `beans_get_post_meta()`.
* Fixed `beans_get_term_meta()`.
* Fixed Compiler to recompile when a fragment changes and not in development mode.
* Fixed replacing action to remove from WordPress.
* Fixed Actions API to allow priority of 0 to be modified.
* Fixed Actions API double subhook calls.
* Fixed `beans_path_to_url()` to bail out when relative URL.
* Fixed count for `beans_count_recursive()`.
* Fixed removing tilde from `beans_url_to_path()`.
* Fixed processing relative URLs in `beans_url_to_path()`.
* Fixed altering of non-internal URLs in `beans_url_to_path()`.
* Fixed `beans_get_layout_class()` not returning correct classes when secondary is no longer registered.
* Fixed 'Next Post' icon close markup ID.
* Fixed 'Read More' icon markup IDs.
* Fixed `beans_get_widget_area()` to return `false` on fail.
* Fixed `beans_get_widget()` to return `false` on fail.
* Fixes to private functions and methods are not noted here.

### Deprecated
* Deprecated `beans_count_recursive()` as it is unused in Beans.
* Deprecated `beans_widget_area()` by replacing it with a renamed function `beans_get_widget_area_output()` that better describes the expected behavior.
* Deprecated the image toolbar's dashicons' class attributes.

## 2016.10.12 - version 1.4.0

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.4.0) for more information.

## 2016.10.10 - version 1.4.0-rc

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.4.0-rc) for more information.

## 2016.09.30 - version 1.4.0-beta

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.4.0-beta) for more information.

## 2016.04.28 - version 1.3.1

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.1) for more information.

## 2016.04.25 - version 1.3.1-rc2

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.1-rc2) for more information.

## 2016.04.22 - version 1.3.1-rc

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.1-rc) for more information.

## 2016.04.09 - version 1.3.1-beta

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.1-beta) for more information.

## 2016.02.18 - version 1.3.0

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.0) for more information.

## 2016.02.15 - version 1.3.0-rc

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.0-rc) for more information.

## 2016.02.10 - version 1.3.0-beta

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.3.0-beta) for more information.

## 2016.01.05 - version 1.2.5

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.5) for more information.

## 2015.12.13 - version 1.2.4

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.4) for more information.

## 2015.11.30 - version 1.2.3

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.3) for more information.

## 2015.11.28 - version 1.2.2

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.2) for more information.

## 2015.11.11 - version 1.2.1

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.1) for more information.

## 2015.09.28 - version 1.2.0

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.0) for more information.

## 2016.01.15 - version 1.2.0-rc

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.0-rc) for more information.

## 2016.01.15 - version 1.2.0-beta

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.2.0-beta) for more information.

## 2015.09.08- version 1.1.2

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.1.2) for more information.

## 2015.09.08- version 1.1.1

See the [release changelog](https://github.com/Getbeans/Beans/releases/tag/1.1.1) for more information.
18 changes: 8 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# Beans WordPress theme framework
[Beans](http://www.getbeans.io/) is an incredibly powerful and flexible WordPress theme, yet light weight and unbelievably fast. Whether you are a pro or a beginner, you will enjoy the simplicity of it. The magic is under the hood!

[![Build Status](https://travis-ci.org/Getbeans/Beans.svg?branch=development)](https://travis-ci.org/Getbeans/Beans)

[Beans](https://www.getbeans.io/) is an incredibly powerful and flexible WordPress theme, yet light weight and unbelievably fast. Whether you are a pro or a beginner, you will enjoy the simplicity of it. The magic is under the hood!
# Documentation
Whether you are looking how to get started or how to use Beans API, you will find your answers in the [documentation](http://www.getbeans.io/documentation/). If your don't find what your are looking for, don't hesitate to [contact us](http://getbeans.io/contact/).
Whether you are looking how to get started or how to use Beans API, you will find your answers in the [documentation](https://www.getbeans.io/documentation/). If your don't find what your are looking for, don't hesitate to [contact us](https://www.getbeans.io/contact/).
# Code snippets
[Code snippets](http://www.getbeans.io/code-snippets/) are ready to be pasted straight into your child theme functions.php.
[Code snippets](https://www.getbeans.io/code-snippets/) are ready to be pasted straight into your child theme functions.php.
# Code reference
Developers this is made for you! You will find all the hooks and functions available in Beans under the [Code reference](http://www.getbeans.io/code-reference/).
Developers this is made for you! You will find all the hooks and functions available in Beans under the [Code reference](https://www.getbeans.io/code-reference/).
# Community
Beans is the achievement of two years of work and was launched the 26th of August 2015. The response has been incredible so far and we hope the community will grow around Beans.
We just opened the [Twitter account](https://twitter.com/BeansPress) so if you would like to say hello, use twitter @BeansPress handle.
Expand All @@ -18,11 +21,6 @@ Beans community is growing rapidly and a lot of people are asking how they can c
* Build extensions
* Contribute to Beans core

If you are a Beans superstar and you want to contribute to Beans core, here are a few house rules:

* Commits must start with a **capital** letter and end with a **dot** (unless it ends with a version number).
* Commits must start with one of the following key words **Added**, **Fixed**, **Updated**, **Improved**, **Modified** or **Removed**.
* Commits must be split into specific tasks and kept small so that other developers can easily see what it's about.
* Code format must be strictly similar to the rest of the theme framework.
If you are a Beans superstar and you want to contribute to Beans core, please see the [Beans Contributor's Wiki](https://github.com/Getbeans/Beans/wiki).

Thanks for making Beans such a great theme which is loved and used by truly passionate people.
12 changes: 6 additions & 6 deletions comments.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* This file content is situated in /lib/templates/structure/comments.php and should
* strictly be overwritten via your child theme.
* This file's content is located in /lib/templates/structure/comments.php and should
* only be overwritten via your child theme.
*
* We strongly recommend to read Beans documentation to find out more how to
* customize Beans theme.
* We strongly recommend to read the Beans documentation to find out more about
* how to customize the Beans theme.
*
* @author Beans
* @link http://www.getbeans.io
* @link https://www.getbeans.io
* @package Beans\Framework
*/

// Template situated in /lib/templates/structure/comments.php
beans_load_default_template( __FILE__ );
75 changes: 75 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"name": "beans/beans",
"description": "The most innovative theme for WordPress. The real magic is under the hood.",
"type": "wordpress-theme",
"license": "GPL-2.0+",
"homepage": "http://www.getbeans.io/",
"support": {
"issues": "https://github.com/GetBeans/Beans/issues",
"source": "https://github.com/GetBeans/Beans"
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"exclude-from-classmap": [
"/tests/"
]
},
"autoload-dev": {
"psr-4": {
"Beans\\Framework\\Tests\\Unit\\": "tests/phpunit/unit/",
"Beans\\Framework\\Tests\\Integration\\": "tests/phpunit/integration/"
}
},
"repositories": [
{
"type": "package",
"package": {
"name": "xwp/wp-dev-lib",
"version": "1.0.1",
"source": {
"url": "https://github.com/xwp/wp-dev-lib.git",
"type": "git",
"reference": "master"
}
}
}
],
"require": {
"php": "^5.2|^7",
"composer/installers": "^1.4",
"roave/security-advisories": "dev-master"
},
"require-dev": {
"php": "^5.6|^7",
"brain/monkey": "^2.2",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4",
"mikey179/vfsStream": "^1.6",
"phpunit/phpunit": "~5.7.9",
"sirbrillig/phpcs-variable-analysis": "^2.0",
"squizlabs/php_codesniffer": "^3.2",
"wimg/php-compatibility": "^8.0",
"wp-coding-standards/wpcs": "^0.14.1",
"xwp/wp-dev-lib": "^1.0.1"
},
"config": {
"sort-order": true
},
"scripts": {
"install-codestandards": [
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run"
],
"phpcs-src": "\"vendor/bin/phpcs\"",
"phpcs-tests": "\"vendor/bin/phpcs\" --runtime-set testVersion 5.6 tests/phpunit/",
"run-phpcs": [
"@phpcs-src",
"@phpcs-tests"
],
"test-unit": "\"vendor/bin/phpunit\" --testsuite unit --color=always",
"test-integration": "\"vendor/bin/phpunit\" --testsuite integration --configuration tests/phpunit/integration/phpunit.xml.dist --color=always",
"run-tests": [
"@test-unit",
"@test-integration"
]
}
}
12 changes: 6 additions & 6 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* This file content is situated in /lib/templates/structure/footer.php and should
* strictly be overwritten via your child theme.
* This file's content is located in /lib/templates/structure/footer.php and should
* only be overwritten via your child theme.
*
* We strongly recommend to read Beans documentation to find out more how to
* customize Beans theme.
* We strongly recommend to read the Beans documentation to find out more about
* how to customize the Beans theme.
*
* @author Beans
* @link http://www.getbeans.io
* @link https://www.getbeans.io
* @package Beans\Framework
*/

// Template situated in /lib/templates/structure/footer.php
beans_load_default_template( __FILE__ );
16 changes: 14 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
<?php
/**
* Beans Framework.
* This core file should only be overwritten via your child theme.
*
* We strongly recommend to read the Beans documentation to find out more about
* how to customize the Beans theme.
*
* @author Beans
* @link https://www.getbeans.io
* @package Beans\Framework
*/

/**
* Initialize Beans theme framework.
*
* @author Beans
* @link http://www.getbeans.io
* @link https://www.getbeans.io
*/

require_once( dirname( __FILE__ ) . '/lib/init.php' );
require_once dirname( __FILE__ ) . '/lib/init.php';
12 changes: 6 additions & 6 deletions header.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?php
/**
* This file content is situated in /lib/templates/structure/header.php and should
* strictly be overwritten via your child theme.
* This file's content is located in /lib/templates/structure/header.php and should
* only be overwritten via your child theme.
*
* We strongly recommend to read Beans documentation to find out more how to
* customize Beans theme.
* We strongly recommend to read the Beans documentation to find out more about
* how to customize Beans theme.
*
* @author Beans
* @link http://www.getbeans.io
* @link https://www.getbeans.io
* @package Beans\Framework
*/

// Template situated in /lib/templates/structure/header.php
beans_load_default_template( __FILE__ );
Loading

0 comments on commit ff8c132

Please sign in to comment.