Skip to content

Commit

Permalink
Merge pull request #1141 from alleyinteractive/release/v2.5.0
Browse files Browse the repository at this point in the history
Release version 2.5.0
  • Loading branch information
kevinfodness authored Jun 28, 2024
2 parents fcf5375 + 8bb1408 commit 180583c
Show file tree
Hide file tree
Showing 83 changed files with 9,182 additions and 6,561 deletions.
52 changes: 0 additions & 52 deletions .deployignore

This file was deleted.

62 changes: 21 additions & 41 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,53 +1,33 @@
# A set of files you probably don't want in your WordPress.org distribution
*.sql
*.tar.gz
*.zip
.DS_Store
.babelrc
.circleci/config.yml
# Exclusions when publishing to WordPress.org

# Directories
.git
.github
assets/js/admin-settings
assets/js/components
assets/js/config
assets/js/pluginsidebar
assets/js/services
assets/js/util
node_modules
tests
vendor

# Files
.distignore
.editorconfig
.eslintignore
.eslintrc.json
.git
.github
.gitignore
.gitlab-ci.yml
.idea
.phpcs
.phpcs-cache.json
.nvmrc
.phpcs.xml
.phpcs.xml.dist
.phpstan
.phpcs-cache.json
.phpunit.result.cache
.travis.yml
.vscode
.wordpress-org
.wp-env.json
Gruntfile.js
README.md
Thumbs.db
assets/js/pluginsidebar
assets/js/util
behat.yml
bin
bitbucket-pipelines.yml
babel.config.json
composer.json
composer.lock
multisite.xml
multisite.xml.dist
node_modules
npm-debug.log
package-lock.json
package.json
phpcs.xml
phpcs.xml.dist
phpstan.neon.dist
phpunit.xml
package-lock.json
phpunit.xml.dist
tags
tests
vendor
README.md
webpack.config.js
wp-cli.local.yml
yarn.lock
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ The Publish to Apple News plugin enables your WordPress content to be published
- Control individual posts with options to publish, update, or delete.
- Publish individual posts or in bulk.
- Handles image galleries and popular embeds like YouTube and Vimeo that are supported by Apple News.
- Automatically adjust advertisement settings.

Please visit our [wiki](https://github.com/alleyinteractive/apple-news/wiki) for detailed information on the follow items:

Expand Down
6 changes: 3 additions & 3 deletions admin/apple-actions/class-api-action.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

namespace Apple_Actions;

require_once plugin_dir_path( __FILE__ ) . 'class-action.php';
require_once plugin_dir_path( __FILE__ ) . 'class-action-exception.php';
require_once plugin_dir_path( __FILE__ ) . '../../includes/apple-push-api/autoload.php';
require_once __DIR__ . '/class-action.php';
require_once __DIR__ . '/class-action-exception.php';
require_once dirname( __DIR__, 2 ) . '/includes/apple-push-api/autoload.php';

use Apple_Actions\Action;
use Apple_Push_API\API;
Expand Down
36 changes: 36 additions & 0 deletions admin/apple-actions/index/class-channel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php
/**
* Publish to Apple News: \Apple_Actions\Index\Channel class
*
* @package Apple_News
*/

namespace Apple_Actions\Index;

require_once dirname( __DIR__ ) . '/class-api-action.php';

use Apple_Actions\API_Action;

/**
* A class to handle a channel request from the admin.
*
* @package Apple_News
*/
class Channel extends API_Action {
/**
* Get the channel data from Apple News.
*
* @return object|null An object containing the response from the API or null on failure.
*/
public function perform() {
$channel = get_transient( 'apple_news_channel' );
if ( false === $channel ) {
if ( $this->is_api_configuration_valid() ) {
$channel = $this->get_api()->get_channel( $this->get_setting( 'api_channel' ) );
set_transient( 'apple_news_channel', $channel, 300 );
}
}

return ! empty( $channel ) ? $channel : null;
}
}
2 changes: 1 addition & 1 deletion admin/apple-actions/index/class-delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Apple_Actions\Index;

require_once plugin_dir_path( __FILE__ ) . '../class-api-action.php';
require_once dirname( __DIR__ ) . '/class-api-action.php';

use Apple_Actions\API_Action;

Expand Down
6 changes: 3 additions & 3 deletions admin/apple-actions/index/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@

namespace Apple_Actions\Index;

require_once plugin_dir_path( __FILE__ ) . '../class-action.php';
require_once plugin_dir_path( __FILE__ ) . '../class-action-exception.php';
require_once plugin_dir_path( __FILE__ ) . '../../../includes/apple-exporter/autoload.php';
require_once dirname( __DIR__ ) . '/class-action.php';
require_once dirname( __DIR__ ) . '/class-action-exception.php';
require_once dirname( __DIR__, 3 ) . '/includes/apple-exporter/autoload.php';

use Apple_Actions\Action;
use Apple_Exporter\Exporter;
Expand Down
2 changes: 1 addition & 1 deletion admin/apple-actions/index/class-get.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

namespace Apple_Actions\Index;

require_once plugin_dir_path( __FILE__ ) . '../class-api-action.php';
require_once dirname( __DIR__ ) . '/class-api-action.php';

use Apple_Actions\API_Action;

Expand Down
Loading

0 comments on commit 180583c

Please sign in to comment.