Version Description
Download this release
Release Info
Developer | rsocial |
Plugin | Revive Old Posts – Auto Post to Social Media |
Version | 9.0.3 |
Comparing to | |
See all releases |
Code changes from version 9.0.2 to 9.0.3
- .github/workflows/build-dev-artifacts.yml +0 -102
- .github/workflows/create-tagged-release.yml +0 -32
- .github/workflows/deploy-to-wporg.yml +0 -28
- .github/workflows/sync-wporg-assets.yml +0 -22
- .github/workflows/test-php.yml +0 -50
- .releaserc.yml +1 -0
- CHANGELOG.md +8 -0
- includes/admin/class-rop-admin.php +7 -3
- includes/admin/models/class-rop-posts-selector-model.php +6 -5
- includes/admin/services/class-rop-facebook-service.php +1 -1
- includes/admin/services/class-rop-linkedin-service.php +1 -9
- includes/admin/services/class-rop-tumblr-service.php +1 -1
- includes/admin/services/class-rop-twitter-service.php +1 -1
- includes/admin/services/class-rop-vk-service.php +1 -1
- includes/class-rop.php +1 -1
- readme.txt +25 -1
- tweet-old-post.php +2 -2
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +14 -2
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
- vendor/composer/installed.php +6 -6
.github/workflows/build-dev-artifacts.yml
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
name: Build Artifact
|
2 |
-
|
3 |
-
on:
|
4 |
-
pull_request:
|
5 |
-
types: [opened, synchronize, ready_for_review]
|
6 |
-
|
7 |
-
|
8 |
-
jobs:
|
9 |
-
dev-zip:
|
10 |
-
|
11 |
-
name: Build ZIP and Upload To S3
|
12 |
-
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
|
13 |
-
runs-on: ubuntu-latest
|
14 |
-
outputs:
|
15 |
-
branch-name: ${{ steps.retrieve-branch-name.outputs.branch_name }}
|
16 |
-
git-sha-8: ${{ steps.retrieve-git-sha-8.outputs.sha8 }}
|
17 |
-
steps:
|
18 |
-
- name: Checkout Source Files
|
19 |
-
uses: actions/checkout@v2
|
20 |
-
- name: Setup PHP
|
21 |
-
uses: shivammathur/setup-php@v2
|
22 |
-
with:
|
23 |
-
php-version: '7.2'
|
24 |
-
- name: Get Composer Cache Directory
|
25 |
-
id: composer-cache
|
26 |
-
run: |
|
27 |
-
echo "::set-output name=dir::$(composer config cache-files-dir)"
|
28 |
-
- name: Configure Composer Cache
|
29 |
-
uses: actions/cache@v1
|
30 |
-
with:
|
31 |
-
path: ${{ steps.composer-cache.outputs.dir }}
|
32 |
-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
|
33 |
-
restore-keys: |
|
34 |
-
${{ runner.os }}-composer-
|
35 |
-
- name: Install composer deps
|
36 |
-
env:
|
37 |
-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
38 |
-
run: |
|
39 |
-
composer install --no-dev --prefer-dist --no-progress
|
40 |
-
- name: Create Zip file
|
41 |
-
run: npm run dist
|
42 |
-
- name: Retrieve branch name
|
43 |
-
id: retrieve-branch-name
|
44 |
-
run: |
|
45 |
-
echo "::set-output name=branch_name::$(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
|
46 |
-
echo "branch name: $(REF=${GITHUB_HEAD_REF:-$GITHUB_REF} && echo ${REF#refs/heads/} | sed 's/\//-/g')"
|
47 |
-
- name: Retrieve git SHA-8 string
|
48 |
-
id: retrieve-git-sha-8
|
49 |
-
run: echo "::set-output name=sha8::$(echo ${GITHUB_SHA} | cut -c1-8)"
|
50 |
-
- name: Upload Latest Version to S3
|
51 |
-
uses: jakejarvis/s3-sync-action@master
|
52 |
-
with:
|
53 |
-
args: --acl public-read --follow-symlinks --delete
|
54 |
-
env:
|
55 |
-
AWS_S3_BUCKET: ${{ secrets.AWS_DEV_BUCKET }}
|
56 |
-
AWS_ACCESS_KEY_ID: ${{ secrets.S3_AWS_KEY_ARTIFACTS }}
|
57 |
-
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_AWS_SECRET_ARTIFACTS }}
|
58 |
-
SOURCE_DIR: artifact/
|
59 |
-
DEST_DIR: ${{ github.event.pull_request.base.repo.name }}-${{ steps.retrieve-branch-name.outputs.branch_name }}-${{ steps.retrieve-git-sha-8.outputs.sha8 }}/
|
60 |
-
|
61 |
-
comment-on-pr:
|
62 |
-
name: Comment on PR With Links to Plugin Zip
|
63 |
-
if: ${{ github.head_ref && github.head_ref != null }}
|
64 |
-
runs-on: ubuntu-latest
|
65 |
-
needs: dev-zip
|
66 |
-
env:
|
67 |
-
CI: true
|
68 |
-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
69 |
-
outputs:
|
70 |
-
pr_number: ${{ steps.get-pr-number.outputs.num }}
|
71 |
-
comment_body: ${{ steps.get-comment-body.outputs.body }}
|
72 |
-
steps:
|
73 |
-
- name: Get PR number
|
74 |
-
id: get-pr-number
|
75 |
-
run: echo "::set-output name=num::$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')"
|
76 |
-
- name: Check if a comment was already made
|
77 |
-
id: find-comment
|
78 |
-
uses: peter-evans/find-comment@v1
|
79 |
-
with:
|
80 |
-
issue-number: ${{ steps.get-pr-number.outputs.num }}
|
81 |
-
comment-author: github-actions[bot]
|
82 |
-
body-includes: Download [build]
|
83 |
-
- name: Get comment body
|
84 |
-
id: get-comment-body
|
85 |
-
run: |
|
86 |
-
body="Plugin build for ${{ github.event.pull_request.head.sha }} is ready :bellhop_bell:!
|
87 |
-
- Download [build](https://verti-artifacts.s3.amazonaws.com/${{ github.event.pull_request.base.repo.name }}-${{ needs.dev-zip.outputs.branch-name }}-${{ needs.dev-zip.outputs.git-sha-8 }}/tweet-old-post.zip)"
|
88 |
-
body="${body//$'\n'/'%0A'}"
|
89 |
-
echo "::set-output name=body::$body"
|
90 |
-
- name: Create comment on PR with links to plugin builds
|
91 |
-
if: ${{ steps.find-comment.outputs.comment-id == '' }}
|
92 |
-
uses: peter-evans/create-or-update-comment@v1
|
93 |
-
with:
|
94 |
-
issue-number: ${{ steps.get-pr-number.outputs.num }}
|
95 |
-
body: ${{ steps.get-comment-body.outputs.body }}
|
96 |
-
- name: Update comment on PR with links to plugin builds
|
97 |
-
if: ${{ steps.find-comment.outputs.comment-id != '' }}
|
98 |
-
uses: peter-evans/create-or-update-comment@v1
|
99 |
-
with:
|
100 |
-
comment-id: ${{ steps.find-comment.outputs.comment-id }}
|
101 |
-
edit-mode: replace
|
102 |
-
body: ${{ steps.get-comment-body.outputs.body }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/create-tagged-release.yml
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
name: Create Tag & Release
|
2 |
-
|
3 |
-
on:
|
4 |
-
push:
|
5 |
-
branches:
|
6 |
-
- master
|
7 |
-
jobs:
|
8 |
-
create_tag:
|
9 |
-
runs-on: ubuntu-latest
|
10 |
-
strategy:
|
11 |
-
matrix:
|
12 |
-
node-version: [12.x]
|
13 |
-
steps:
|
14 |
-
- uses: actions/checkout@master
|
15 |
-
with:
|
16 |
-
persist-credentials: false
|
17 |
-
- name: Build files using ${{ matrix.node-version }}
|
18 |
-
uses: actions/setup-node@v1
|
19 |
-
with:
|
20 |
-
node-version: ${{ matrix.node-version }}
|
21 |
-
- name: Release New Version
|
22 |
-
id: release
|
23 |
-
run: |
|
24 |
-
npm ci
|
25 |
-
npm run release
|
26 |
-
env:
|
27 |
-
CI: true
|
28 |
-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
|
29 |
-
GIT_AUTHOR_NAME: themeisle[bot]
|
30 |
-
GIT_AUTHOR_EMAIL: ${{ secrets.BOT_EMAIL }}
|
31 |
-
GIT_COMMITTER_NAME: themeisle[bot]
|
32 |
-
GIT_COMMITTER_EMAIL: ${{ secrets.BOT_EMAIL }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/deploy-to-wporg.yml
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
name: Deploy
|
2 |
-
on:
|
3 |
-
push:
|
4 |
-
branches:
|
5 |
-
- master
|
6 |
-
jobs:
|
7 |
-
tag:
|
8 |
-
name: New version
|
9 |
-
runs-on: ubuntu-latest
|
10 |
-
steps:
|
11 |
-
- uses: actions/checkout@master
|
12 |
-
- name: Get The Version
|
13 |
-
id: get_version
|
14 |
-
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
|
15 |
-
- name: Setup PHP
|
16 |
-
uses: shivammathur/setup-php@v2
|
17 |
-
with:
|
18 |
-
php-version: '7.2'
|
19 |
-
- name: Run Composer Install
|
20 |
-
run: |
|
21 |
-
npm ci
|
22 |
-
composer install --no-dev --prefer-dist --no-progress --no-suggest
|
23 |
-
- name: WordPress Plugin Deploy
|
24 |
-
uses: 10up/action-wordpress-plugin-deploy@master
|
25 |
-
env:
|
26 |
-
VERSION: "9.0.2"
|
27 |
-
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
|
28 |
-
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/sync-wporg-assets.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
name: Sync Plugin Assets With WordPress.org
|
2 |
-
|
3 |
-
|
4 |
-
on:
|
5 |
-
push:
|
6 |
-
branches:
|
7 |
-
- master
|
8 |
-
paths:
|
9 |
-
- 'readme.txt'
|
10 |
-
- '.wordpress-org/**'
|
11 |
-
jobs:
|
12 |
-
run:
|
13 |
-
runs-on: ubuntu-latest
|
14 |
-
if: "! contains(github.event.head_commit.message, 'chore(release)')"
|
15 |
-
name: Push Assets to WP.org
|
16 |
-
steps:
|
17 |
-
- uses: actions/checkout@master
|
18 |
-
- name: WordPress.org plugin asset/readme update
|
19 |
-
uses: selul/action-wordpress-plugin-asset-update@develop
|
20 |
-
env:
|
21 |
-
SVN_PASSWORD: ${{ secrets.SVN_THEMEISLE_PASSWORD }}
|
22 |
-
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.github/workflows/test-php.yml
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
name: Test PHP
|
2 |
-
|
3 |
-
on: [pull_request]
|
4 |
-
|
5 |
-
jobs:
|
6 |
-
code-sniff:
|
7 |
-
runs-on: ubuntu-latest
|
8 |
-
steps:
|
9 |
-
- name: Checkout source code
|
10 |
-
uses: actions/checkout@v2
|
11 |
-
- name: Setup PHP
|
12 |
-
uses: shivammathur/setup-php@v2
|
13 |
-
with:
|
14 |
-
php-version: '7.2'
|
15 |
-
tools: phpcs, phpcbf
|
16 |
-
- name: Run Composer Install
|
17 |
-
run: composer install --prefer-dist --no-progress --quiet
|
18 |
-
- name: Run PHPCBF
|
19 |
-
run: composer run beautify
|
20 |
-
# PHPCBF returns exit code 1 when it fixes errors, so we continue letting PHPCS find unfixed issues
|
21 |
-
continue-on-error: true
|
22 |
-
- name: Run PHPCS
|
23 |
-
run: composer run lint
|
24 |
-
continue-on-error: false
|
25 |
-
|
26 |
-
|
27 |
-
php-unit:
|
28 |
-
needs: code-sniff
|
29 |
-
runs-on: ubuntu-latest
|
30 |
-
services:
|
31 |
-
mysql:
|
32 |
-
image: mysql:5.7
|
33 |
-
env:
|
34 |
-
MYSQL_ROOT_PASSWORD: root
|
35 |
-
ports:
|
36 |
-
- 3306/tcp
|
37 |
-
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
|
38 |
-
steps:
|
39 |
-
- name: Checkout source code
|
40 |
-
uses: actions/checkout@v2
|
41 |
-
- name: Setup PHP
|
42 |
-
uses: shivammathur/setup-php@v2
|
43 |
-
with:
|
44 |
-
php-version: '7.2'
|
45 |
-
- name: Install WordPress Test Suite
|
46 |
-
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:${{ job.services.mysql.ports['3306'] }}
|
47 |
-
- name: Install composer
|
48 |
-
run: composer install --prefer-dist --no-progress
|
49 |
-
- name: Run PHP Unit
|
50 |
-
run: composer run test
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.releaserc.yml
CHANGED
@@ -18,6 +18,7 @@ plugins:
|
|
18 |
- readme.md
|
19 |
- readme.txt
|
20 |
- tweet-old-post.php
|
|
|
21 |
- package-lock.json
|
22 |
- package.json
|
23 |
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
|
18 |
- readme.md
|
19 |
- readme.txt
|
20 |
- tweet-old-post.php
|
21 |
+
- includes/class-rop.php
|
22 |
- package-lock.json
|
23 |
- package.json
|
24 |
message: "chore(release): ${nextRelease.version} \n\n${nextRelease.notes}"
|
CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
##### [Version 9.0.2](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.1...v9.0.2) (2021-06-07)
|
2 |
|
3 |
### Features
|
1 |
+
##### [Version 9.0.3](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.2...v9.0.3) (2021-06-24)
|
2 |
+
|
3 |
+
### Fixes
|
4 |
+
- LinkedIn shared article posts would not show the preview image.
|
5 |
+
- The filter to set the WPML language that is shared to accounts was being overridden in the Lite version of the plugin.
|
6 |
+
- Handle cases where the wpml_language option is not set for an account and the user tries to share a post.
|
7 |
+
- Handle cases where randomize hashtags option is not set for an account and the user tries to share a post.
|
8 |
+
|
9 |
##### [Version 9.0.2](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.1...v9.0.2) (2021-06-07)
|
10 |
|
11 |
### Features
|
includes/admin/class-rop-admin.php
CHANGED
@@ -1570,19 +1570,23 @@ class Rop_Admin {
|
|
1570 |
|
1571 |
$post_lang_code = apply_filters( 'wpml_post_language_details', '', $post_id )['language_code'];
|
1572 |
|
1573 |
-
// TODO double check that this is looping correctly since pulling down latest changes
|
1574 |
-
// from v860
|
1575 |
foreach ( $share_to_accounts as $account_id ) {
|
1576 |
|
1577 |
$rop_account_post_format = $post_format_model->get_post_format( $account_id );
|
|
|
|
|
|
|
|
|
|
|
1578 |
$rop_account_lang_code = $rop_account_post_format['wpml_language'];
|
1579 |
|
1580 |
if ( $post_lang_code === $rop_account_lang_code ) {
|
1581 |
$filtered_share_to_accounts[] = $account_id;
|
1582 |
}
|
|
|
1583 |
}
|
1584 |
|
1585 |
-
return $filtered_share_to_accounts;
|
1586 |
|
1587 |
}
|
1588 |
|
1570 |
|
1571 |
$post_lang_code = apply_filters( 'wpml_post_language_details', '', $post_id )['language_code'];
|
1572 |
|
|
|
|
|
1573 |
foreach ( $share_to_accounts as $account_id ) {
|
1574 |
|
1575 |
$rop_account_post_format = $post_format_model->get_post_format( $account_id );
|
1576 |
+
|
1577 |
+
if( empty( $rop_account_post_format['wpml_language'] ) ){
|
1578 |
+
continue;
|
1579 |
+
};
|
1580 |
+
|
1581 |
$rop_account_lang_code = $rop_account_post_format['wpml_language'];
|
1582 |
|
1583 |
if ( $post_lang_code === $rop_account_lang_code ) {
|
1584 |
$filtered_share_to_accounts[] = $account_id;
|
1585 |
}
|
1586 |
+
|
1587 |
}
|
1588 |
|
1589 |
+
return empty($filtered_share_to_accounts) ? $share_to_accounts : $filtered_share_to_accounts;
|
1590 |
|
1591 |
}
|
1592 |
|
includes/admin/models/class-rop-posts-selector-model.php
CHANGED
@@ -721,7 +721,7 @@ class Rop_Posts_Selector_Model extends Rop_Model_Abstract {
|
|
721 |
public function rop_wpml_id( $post_id, $account_id = '' ) {
|
722 |
|
723 |
$default_lang = apply_filters( 'wpml_default_language', null );
|
724 |
-
$lang_code =
|
725 |
|
726 |
$post = $post_id;
|
727 |
|
@@ -735,9 +735,9 @@ class Rop_Posts_Selector_Model extends Rop_Model_Abstract {
|
|
735 |
}
|
736 |
|
737 |
if ( ! empty( $rop_account_lang_code ) ) {
|
738 |
-
|
739 |
}
|
740 |
-
|
741 |
if ( is_array( $post_id ) ) {
|
742 |
|
743 |
$post = array();
|
@@ -786,8 +786,9 @@ class Rop_Posts_Selector_Model extends Rop_Model_Abstract {
|
|
786 |
* @access public
|
787 |
*/
|
788 |
public function rop_wpml_link( $url, $account_id ) {
|
|
|
789 |
$default_lang = apply_filters( 'wpml_default_language', null );
|
790 |
-
$lang_code =
|
791 |
|
792 |
if ( ! empty( $account_id ) ) {
|
793 |
|
@@ -799,7 +800,7 @@ class Rop_Posts_Selector_Model extends Rop_Model_Abstract {
|
|
799 |
}
|
800 |
|
801 |
if ( ! empty( $rop_account_lang_code ) ) {
|
802 |
-
|
803 |
}
|
804 |
|
805 |
$wpml_url = apply_filters( 'wpml_permalink', $url, $lang_code );
|
721 |
public function rop_wpml_id( $post_id, $account_id = '' ) {
|
722 |
|
723 |
$default_lang = apply_filters( 'wpml_default_language', null );
|
724 |
+
$lang_code = '';
|
725 |
|
726 |
$post = $post_id;
|
727 |
|
735 |
}
|
736 |
|
737 |
if ( ! empty( $rop_account_lang_code ) ) {
|
738 |
+
$lang_code = apply_filters( 'rop_wpml_lang', $rop_account_lang_code);
|
739 |
}
|
740 |
+
|
741 |
if ( is_array( $post_id ) ) {
|
742 |
|
743 |
$post = array();
|
786 |
* @access public
|
787 |
*/
|
788 |
public function rop_wpml_link( $url, $account_id ) {
|
789 |
+
|
790 |
$default_lang = apply_filters( 'wpml_default_language', null );
|
791 |
+
$lang_code = '';
|
792 |
|
793 |
if ( ! empty( $account_id ) ) {
|
794 |
|
800 |
}
|
801 |
|
802 |
if ( ! empty( $rop_account_lang_code ) ) {
|
803 |
+
$lang_code = apply_filters( 'rop_wpml_lang', $rop_account_lang_code);
|
804 |
}
|
805 |
|
806 |
$wpml_url = apply_filters( 'wpml_permalink', $url, $lang_code );
|
includes/admin/services/class-rop-facebook-service.php
CHANGED
@@ -467,7 +467,7 @@ class Rop_Facebook_Service extends Rop_Services_Abstract {
|
|
467 |
|
468 |
$hashtags = $post_details['hashtags'];
|
469 |
|
470 |
-
if ( $post_format['hashtags_randomize'] ) {
|
471 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
472 |
}
|
473 |
|
467 |
|
468 |
$hashtags = $post_details['hashtags'];
|
469 |
|
470 |
+
if ( ! empty( $post_format['hashtags_randomize'] ) && $post_format['hashtags_randomize'] ) {
|
471 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
472 |
}
|
473 |
|
includes/admin/services/class-rop-linkedin-service.php
CHANGED
@@ -524,7 +524,7 @@ class Rop_Linkedin_Service extends Rop_Services_Abstract {
|
|
524 |
|
525 |
$hashtags = $post_details['hashtags'];
|
526 |
|
527 |
-
if ( $post_format['hashtags_randomize'] ) {
|
528 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
529 |
}
|
530 |
|
@@ -633,15 +633,7 @@ class Rop_Linkedin_Service extends Rop_Services_Abstract {
|
|
633 |
0 =>
|
634 |
array(
|
635 |
'status' => 'READY',
|
636 |
-
'description' =>
|
637 |
-
array(
|
638 |
-
'text' => $this->strip_excess_blank_lines( $post_details['content'] ),
|
639 |
-
),
|
640 |
'originalUrl' => trim( $this->get_url( $post_details ) ),
|
641 |
-
'title' =>
|
642 |
-
array(
|
643 |
-
'text' => html_entity_decode( get_the_title( $post_details['post_id'] ) ),
|
644 |
-
),
|
645 |
),
|
646 |
),
|
647 |
),
|
524 |
|
525 |
$hashtags = $post_details['hashtags'];
|
526 |
|
527 |
+
if ( ! empty( $post_format['hashtags_randomize'] ) && $post_format['hashtags_randomize'] ) {
|
528 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
529 |
}
|
530 |
|
633 |
0 =>
|
634 |
array(
|
635 |
'status' => 'READY',
|
|
|
|
|
|
|
|
|
636 |
'originalUrl' => trim( $this->get_url( $post_details ) ),
|
|
|
|
|
|
|
|
|
637 |
),
|
638 |
),
|
639 |
),
|
includes/admin/services/class-rop-tumblr-service.php
CHANGED
@@ -438,7 +438,7 @@ class Rop_Tumblr_Service extends Rop_Services_Abstract {
|
|
438 |
|
439 |
$hashtags = $post_details['hashtags'];
|
440 |
|
441 |
-
if ( $post_format['hashtags_randomize'] ) {
|
442 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
443 |
}
|
444 |
|
438 |
|
439 |
$hashtags = $post_details['hashtags'];
|
440 |
|
441 |
+
if ( ! empty( $post_format['hashtags_randomize'] ) && $post_format['hashtags_randomize'] ) {
|
442 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
443 |
}
|
444 |
|
includes/admin/services/class-rop-twitter-service.php
CHANGED
@@ -604,7 +604,7 @@ class Rop_Twitter_Service extends Rop_Services_Abstract {
|
|
604 |
|
605 |
$hashtags = $post_details['hashtags'];
|
606 |
|
607 |
-
if ( $post_format['hashtags_randomize'] ) {
|
608 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
609 |
}
|
610 |
|
604 |
|
605 |
$hashtags = $post_details['hashtags'];
|
606 |
|
607 |
+
if ( ! empty( $post_format['hashtags_randomize'] ) && $post_format['hashtags_randomize'] ) {
|
608 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
609 |
}
|
610 |
|
includes/admin/services/class-rop-vk-service.php
CHANGED
@@ -461,7 +461,7 @@ class Rop_Vk_Service extends Rop_Services_Abstract {
|
|
461 |
|
462 |
$hashtags = $post_details['hashtags'];
|
463 |
|
464 |
-
if ( $post_format['hashtags_randomize'] ) {
|
465 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
466 |
}
|
467 |
|
461 |
|
462 |
$hashtags = $post_details['hashtags'];
|
463 |
|
464 |
+
if ( ! empty( $post_format['hashtags_randomize'] ) && $post_format['hashtags_randomize'] ) {
|
465 |
$hashtags = $this->shuffle_hashtags( $hashtags );
|
466 |
}
|
467 |
|
includes/class-rop.php
CHANGED
@@ -68,7 +68,7 @@ class Rop {
|
|
68 |
public function __construct() {
|
69 |
|
70 |
$this->plugin_name = 'rop';
|
71 |
-
$this->version = '9.0.
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
68 |
public function __construct() {
|
69 |
|
70 |
$this->plugin_name = 'rop';
|
71 |
+
$this->version = '9.0.3';
|
72 |
|
73 |
$this->load_dependencies();
|
74 |
$this->set_locale();
|
readme.txt
CHANGED
@@ -298,7 +298,31 @@ http://revive.social/plugins/revive-old-post
|
|
298 |
|
299 |
|
300 |
== Changelog ==
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
|
303 |
* [Fix Pro] Issue with saving maximum post age setting for users on Personal Plan
|
304 |
* [Change] Don't show ROP Log error notice to non-admins
|
298 |
|
299 |
|
300 |
== Changelog ==
|
301 |
+
|
302 |
+
##### [Version 9.0.3](https://github.com/Codeinwp/tweet-old-post/compare/v9.0.2...v9.0.3) (2021-06-24)
|
303 |
+
|
304 |
+
### Fixes
|
305 |
+
- LinkedIn shared article posts would not show the preview image.
|
306 |
+
- The filter to set the WPML language that is shared to accounts was being overridden in the Lite version of the plugin.
|
307 |
+
- Handle cases where the wpml_language option is not set for an account and the user tries to share a post.
|
308 |
+
- Handle cases where randomize hashtags option is not set for an account and the user tries to share a post.
|
309 |
+
|
310 |
+
|
311 |
+
|
312 |
+
|
313 |
+
= 9.0.2 - 2021-06-07 =
|
314 |
+
|
315 |
+
#### Features
|
316 |
+
* [New Pro] Post Format "Share Content" option to share post's Yoast SEO title or description.
|
317 |
+
* New Post Format option to randomize hashtags before sharing.
|
318 |
+
|
319 |
+
#### Fixes
|
320 |
+
* All backslashes were not being removed from Post on Publish share messages.
|
321 |
+
* Post on Publish checkboxes would sometimes be checked by default while updating already published posts.
|
322 |
+
* Post on Publish feature would sometimes share the post at odd times if the "True Instant Share" option was turned off in General Settings of ROP.
|
323 |
+
* Better error handling for wp_remote_post() calls.
|
324 |
+
|
325 |
+
= 9.0.1 - 2021-04-22 =
|
326 |
|
327 |
* [Fix Pro] Issue with saving maximum post age setting for users on Personal Plan
|
328 |
* [Change] Don't show ROP Log error notice to non-admins
|
tweet-old-post.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* Plugin Name: Revive Old Posts
|
17 |
* Plugin URI: https://revive.social/
|
18 |
* Description: WordPress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
|
19 |
-
* Version: 9.0.
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
@@ -162,7 +162,7 @@ function run_rop() {
|
|
162 |
define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
|
163 |
|
164 |
define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
|
165 |
-
define( 'ROP_LITE_VERSION', '9.0.
|
166 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
167 |
$debug = false;
|
168 |
if ( function_exists( 'wp_get_environment_type' ) ) {
|
16 |
* Plugin Name: Revive Old Posts
|
17 |
* Plugin URI: https://revive.social/
|
18 |
* Description: WordPress plugin that helps you to keeps your old posts alive by sharing them and driving more traffic to them from twitter/facebook or linkedin. It also helps you to promote your content. You can set time and no of posts to share to drive more traffic.For questions, comments, or feature requests, <a href="http://revive.social/support/?utm_source=plugindesc&utm_medium=announce&utm_campaign=top">contact </a> us!
|
19 |
+
* Version: 9.0.3
|
20 |
* Author: revive.social
|
21 |
* Author URI: https://revive.social/
|
22 |
* Requires at least: 3.5
|
162 |
define( 'ROP_CRON_ALTERNATIVE', $use_remote_cron );
|
163 |
|
164 |
define( 'ROP_PRO_URL', 'http://revive.social/plugins/revive-old-post/' );
|
165 |
+
define( 'ROP_LITE_VERSION', '9.0.3' );
|
166 |
define( 'ROP_LITE_BASE_FILE', __FILE__ );
|
167 |
$debug = false;
|
168 |
if ( function_exists( 'wp_get_environment_type' ) ) {
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit3447c09156215620322edd440991b01b::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -249,7 +249,13 @@ class InstalledVersions
|
|
249 |
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
250 |
|
251 |
if (null === self::$installed) {
|
252 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
}
|
254 |
|
255 |
return self::$installed;
|
@@ -316,7 +322,13 @@ class InstalledVersions
|
|
316 |
}
|
317 |
|
318 |
if (null === self::$installed) {
|
319 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
}
|
321 |
$installed[] = self::$installed;
|
322 |
|
249 |
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
250 |
|
251 |
if (null === self::$installed) {
|
252 |
+
// only require the installed.php file if this file is loaded from its dumped location,
|
253 |
+
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
254 |
+
if (substr(__DIR__, -8, 1) !== 'C') {
|
255 |
+
self::$installed = include __DIR__ . '/installed.php';
|
256 |
+
} else {
|
257 |
+
self::$installed = array();
|
258 |
+
}
|
259 |
}
|
260 |
|
261 |
return self::$installed;
|
322 |
}
|
323 |
|
324 |
if (null === self::$installed) {
|
325 |
+
// only require the installed.php file if this file is loaded from its dumped location,
|
326 |
+
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
327 |
+
if (substr(__DIR__, -8, 1) !== 'C') {
|
328 |
+
self::$installed = require __DIR__ . '/installed.php';
|
329 |
+
} else {
|
330 |
+
self::$installed = array();
|
331 |
+
}
|
332 |
}
|
333 |
$installed[] = self::$installed;
|
334 |
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInit98c769f099785986c138cc81525ab727
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
@@ -53,19 +53,19 @@ class ComposerAutoloaderInit98c769f099785986c138cc81525ab727
|
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
-
$includeFiles = Composer\Autoload\
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
-
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
-
function
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit3447c09156215620322edd440991b01b
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit3447c09156215620322edd440991b01b', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit3447c09156215620322edd440991b01b', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit3447c09156215620322edd440991b01b::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
53 |
$loader->register(true);
|
54 |
|
55 |
if ($useStaticLoader) {
|
56 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit3447c09156215620322edd440991b01b::$files;
|
57 |
} else {
|
58 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
59 |
}
|
60 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
61 |
+
composerRequire3447c09156215620322edd440991b01b($fileIdentifier, $file);
|
62 |
}
|
63 |
|
64 |
return $loader;
|
65 |
}
|
66 |
}
|
67 |
|
68 |
+
function composerRequire3447c09156215620322edd440991b01b($fileIdentifier, $file)
|
69 |
{
|
70 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
71 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
|
@@ -56,9 +56,9 @@ class ComposerStaticInit98c769f099785986c138cc81525ab727
|
|
56 |
public static function getInitializer(ClassLoader $loader)
|
57 |
{
|
58 |
return \Closure::bind(function () use ($loader) {
|
59 |
-
$loader->prefixLengthsPsr4 =
|
60 |
-
$loader->prefixDirsPsr4 =
|
61 |
-
$loader->classMap =
|
62 |
|
63 |
}, null, ClassLoader::class);
|
64 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit3447c09156215620322edd440991b01b
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'c65d09b6820da036953a371c8c73a9b1' => __DIR__ . '/..' . '/facebook/graph-sdk/src/Facebook/polyfills.php',
|
56 |
public static function getInitializer(ClassLoader $loader)
|
57 |
{
|
58 |
return \Closure::bind(function () use ($loader) {
|
59 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit3447c09156215620322edd440991b01b::$prefixLengthsPsr4;
|
60 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit3447c09156215620322edd440991b01b::$prefixDirsPsr4;
|
61 |
+
$loader->classMap = ComposerStaticInit3447c09156215620322edd440991b01b::$classMap;
|
62 |
|
63 |
}, null, ClassLoader::class);
|
64 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'pretty_version' => '
|
4 |
-
'version' => '
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => 'codeinwp/tweet-old-post',
|
10 |
'dev' => false,
|
11 |
),
|
@@ -29,12 +29,12 @@
|
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'codeinwp/tweet-old-post' => array(
|
32 |
-
'pretty_version' => '
|
33 |
-
'version' => '
|
34 |
'type' => 'wordpress-plugin',
|
35 |
'install_path' => __DIR__ . '/../../',
|
36 |
'aliases' => array(),
|
37 |
-
'reference' => '
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'facebook/graph-sdk' => array(
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => 'v9.0.3',
|
4 |
+
'version' => '9.0.3.0',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '941817d5e3d80c8026e63ebe0d5632f58ade5554',
|
9 |
'name' => 'codeinwp/tweet-old-post',
|
10 |
'dev' => false,
|
11 |
),
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'codeinwp/tweet-old-post' => array(
|
32 |
+
'pretty_version' => 'v9.0.3',
|
33 |
+
'version' => '9.0.3.0',
|
34 |
'type' => 'wordpress-plugin',
|
35 |
'install_path' => __DIR__ . '/../../',
|
36 |
'aliases' => array(),
|
37 |
+
'reference' => '941817d5e3d80c8026e63ebe0d5632f58ade5554',
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'facebook/graph-sdk' => array(
|