Skip to content

Commit aa89904

Browse files
committed
Bump to 2.1.0
1 parent 7bb42db commit aa89904

16 files changed

+36
-43
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog ##
22

3-
## Next
3+
## 2.1.0 - 04 Avr 2018
44
* Handle Group, Clone and Repeater ACF fields.
55
* Add ACF's Textarea and Wysiwyg support.
66
* Add WP CLI command to list and delete unused media.

autoload.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,10 @@ protected function requireFile( $file ) {
195195
// register the base directories for the namespace prefix
196196
$loader->addNamespace( 'BEA\Media_Analytics', BEA_MEDIA_ANALYTICS_DIR . 'classes' );
197197

198-
// Vendor autoload
198+
/**
199+
* Vendor autoload
200+
* @since 2.1.0
201+
*/
199202
if ( file_exists( BEA_MEDIA_ANALYTICS_DIR . 'vendor/autoload.php' ) ) {
200203
require BEA_MEDIA_ANALYTICS_DIR . 'vendor/autoload.php';
201204
}

bea-media-analytics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: BEA - Media Analytics
4-
Version: 2.0.4
4+
Version: 2.1.0
55
Plugin URI: https://github.com/BeAPI/bea-media-analytics
66
Description: Find where and how media are used across your site.
77
Author: Be API Technical team
@@ -35,7 +35,7 @@
3535
}
3636

3737
// Plugin constants
38-
define( 'BEA_MEDIA_ANALYTICS_VERSION', '2.0.4' );
38+
define( 'BEA_MEDIA_ANALYTICS_VERSION', '2.1.0' );
3939
define( 'BEA_MEDIA_ANALYTICS_MIN_PHP_VERSION', '5.6' );
4040

4141
// Plugin URL and PATH

classes/addons/image-map-pro/main.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function init() {
2424
*
2525
* @param integer $i
2626
*
27-
* @since future
27+
* @since 2.1.0
2828
* @author Amaury BALMER
2929
*/
3030
public function index_site( $i ) {
@@ -43,7 +43,7 @@ public function index_site( $i ) {
4343
* @param $content_id
4444
* @param $media_id
4545
*
46-
* @since future
46+
* @since 2.1.0
4747
* @author Amaury BALMER
4848
*
4949
* @return string
@@ -64,7 +64,7 @@ public function edit_view_context( $html, $types, $content_id, $media_id ) {
6464
* @param $value
6565
* @param $old_value
6666
*
67-
* @since future
67+
* @since 2.1.0
6868
* @author Amaury BALMER
6969
*
7070
* @return mixed

classes/admin/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function add_media_from_post_acf_fields( $media_ids, $post_id ) {
100100
* @param int $post_id
101101
*
102102
* @author Amaury BALMER
103-
* @since future
103+
* @since 2.1.0
104104
*
105105
* @return array
106106
*/

classes/admin/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function modal_view( $form_fields, $media ) {
7979
* @param $media
8080
*
8181
* @since 1.0.0
82-
* @since future : acf-option case
82+
* @since 2.1.0 : acf-option case
8383
*
8484
* @author Maxime CULEA
8585
*

classes/admin/option.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function init() {
1515
* On save option, index option's media
1616
*
1717
* @author Amaury balmer
18-
* @since future
18+
* @since 2.1.0
1919
*
2020
* @param $post_id
2121
*/
@@ -41,7 +41,7 @@ public static function acf_save_post( $post_id ) {
4141
* Index medias for a ACF option page
4242
*
4343
* @author Amaury balmer
44-
* @since future
44+
* @since 2.1.0
4545
*
4646
* @param string $page_menu_slug
4747
*/
@@ -51,7 +51,7 @@ public static function index_page_option( $page_menu_slug ) {
5151
*
5252
* Get images from multiple sources to index against post
5353
*
54-
* @since future
54+
* @since 2.1.0
5555
*
5656
* @param array $image_ids Array of images id.
5757
* @param string $page_menu_slug ACF menu slug.

classes/api/query.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected function init() {
1919
* @param array $vars
2020
*
2121
* @author Amaury Balmer
22-
* @since future
22+
* @since 2.1.0
2323
*
2424
* @return array
2525
*/
@@ -36,7 +36,7 @@ public static function query_vars( $vars ) {
3636
* @param \WP_Query $query
3737
*
3838
* @author Amaury Balmer
39-
* @since future
39+
* @since 2.1.0
4040
*
4141
* @return string
4242
*/
@@ -61,7 +61,7 @@ public static function posts_join( $join, \WP_Query $query ) {
6161
* @param |WP_Query $query
6262
*
6363
* @author Amaury Balmer
64-
* @since future
64+
* @since 2.1.0
6565
*
6666
* @return string
6767
*/
@@ -82,7 +82,7 @@ public static function posts_where( $where, \WP_Query $query ) {
8282
* @param |WP_Query $query
8383
*
8484
* @author Amaury Balmer
85-
* @since future
85+
* @since 2.1.0
8686
*
8787
* @return string
8888
*/

classes/db-table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class DB_Table {
77
/** @var object Database object (usually $GLOBALS['wpdb']) */
88
public $db = false;
99

10-
public $db_version = 20180323;
10+
public $db_version = 20180404;
1111

1212
public $db_version_key = 'bea_wpdb_media_analytics_version';
1313

@@ -57,11 +57,11 @@ public function upgrade_database() {
5757
$this->create_table();
5858
} elseif ( version_compare( (int) $old_version, 20171201, '<=' ) ) {
5959
/**
60-
* Update database structure from 1.0.1 to future
60+
* Update database structure from 1.0.1 to 2.1.0
6161
*
6262
* object_id bigint(20) NOT NULL => object_id varchar(255) NOT NULL
6363
*
64-
* @since future
64+
* @since 2.1.0
6565
*/
6666
$this->create_table();
6767
} else {

classes/helper/helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ static function get_media_from_links( $text ) {
9393
*
9494
* @link https://philipnewcomer.net/2012/11/get-the-attachment-id-from-an-image-url-in-wordpress/
9595
*
96-
* @since future
96+
* @since 2.1.0
9797
* @author Amaury Balmer
9898
*
9999
* @return int

classes/helper/option.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Option extends Helper {
1212
* @param string $page_menu_slug
1313
*
1414
* @author Amaury BALMER
15-
* @since future
15+
* @since 2.1.0
1616
*
1717
* @return array Media ids
1818
*/

classes/upgrader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function init() {
1414
* @param $upgrader
1515
* @param $options
1616
*
17-
* @since future
17+
* @since 2.1.0
1818
* @author Maxime CULEA
1919
*/
2020
public static function plugin_updated_actions( $upgrader = [], $options = [] ) {

classes/wp-cli/unused.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Unused extends \WP_CLI_Command {
1111
* ## EXAMPLES
1212
* wp bea_media_analytics unused list --url=
1313
*
14-
* @since future
14+
* @since 2.1.0
1515
* @author Maxime CULEA
1616
*
1717
* @synopsis
@@ -43,7 +43,7 @@ public function enumerate() {
4343
* ## EXAMPLES
4444
* wp bea_media_analytics unused delete --url=
4545
*
46-
* @since future
46+
* @since 2.1.0
4747
* @author Maxime CULEA
4848
*
4949
* @synopsis

composer.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,8 @@
2222
"type":"wordpress-plugin",
2323
"minimum-stability":"stable",
2424
"license":"GPL-3.0+",
25-
"platform":{
26-
"php":">=5.6.0"
27-
},
2825
"require":{
2926
"php":">=5.6.0",
30-
"julien731/wp-dismissible-notices-handler":"dev-master"
31-
},
32-
"autoload":{
33-
"classmap":[
34-
"lib/"
35-
]
27+
"julien731/wp-dismissible-notices-handler":"1.0"
3628
}
3729
}

composer.lock

Lines changed: 7 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ For the indexation of all the supported contents, the blog id is used. So on the
122122

123123
== Changelog ==
124124

125-
= Next
125+
= 2.1.0 - 04 Avr 2018 =
126126
- Handle Group, Clone and Repeater ACF fields.
127127
- Add ACF's Textarea and Wysiwyg support.
128128
- Add WP CLI command to list and delete unused media.

0 commit comments

Comments
 (0)