PluginProbe
Social Media Auto Poster – Schedule & Publish to Buffer / 6.2.5
Social Media Auto Poster – Schedule & Publish to Buffer v6.2.5
6.2.5 6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.2 6.1.1 6.1.0 6.0.9 6.0.8 6.0.7 6.0.6 6.0.5 6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 All 126 releases
← All changes | lib/social/views/settings-auth.php +14 -7 6.2.26.2.5 View file →
@@ -69,9 +69,9 @@
69 69 <p class="description">
70 70 <?php
71 71 echo esc_html(
72 72 sprintf(
73 - /* translators: %1$s: Plugin Name, %2$s: Social Media Service Name (Buffer, Hootsuite) */
73 + /* translators: %1$s: Social Media Scheduler Name, %2$s: Plugin Name */
74 74 __( 'A list of %1$s accounts/organizations that are connected to %2$s.', 'wp-to-buffer' ),
75 75 $this->base->plugin->account,
76 76 $this->base->plugin->displayName
77 77 )
@@ -78,16 +78,16 @@
78 78 );
79 79 ?>
80 80 <br />
81 81 <?php
82 - echo esc_html__( 'Missing profiles? Click the Refresh Profiles to update your profiles list.', 'wp-to-buffer' );
82 + echo esc_html__( 'Missing profiles? Click the Refresh Profiles button to update your profiles list.', 'wp-to-buffer' );
83 83 ?>
84 84 <br />
85 85 <?php
86 86 echo esc_html(
87 87 sprintf(
88 - /* translators: %1$s: Social Media Service Name (Buffer, Hootsuite) */
89 - __( 'Issues with your connection to %1$s? Click the Reconnect button.', 'wp-to-buffer' ),
88 + /* translators: %s: Social Media Scheduler Name */
89 + __( 'Issues with your connection to %s? You\'ll see a Reconnect button below, which you can click.', 'wp-to-buffer' ),
90 90 $this->base->plugin->account
91 91 )
92 92 );
93 93 ?>
@@ -122,11 +122,18 @@
122 122 <div class="right">
123 123 <a href="<?php echo esc_url( $refresh_profiles_url ); ?>" class="button button-secondary">
124 124 <?php esc_html_e( 'Refresh Profiles', 'wp-to-buffer' ); ?>
125 125 </a>
126 - <a href="<?php echo esc_url( $reconnect_url ); ?>" class="button button-secondary">
127 - <?php esc_html_e( 'Reconnect', 'wp-to-buffer' ); ?>
128 - </a>
126 + <?php
127 + // Only show Reconnect if the token expired.
128 + if ( time() > $account['token_expires'] ) {
129 + ?>
130 + <a href="<?php echo esc_url( $reconnect_url ); ?>" class="button button-secondary">
131 + <?php esc_html_e( 'Reconnect', 'wp-to-buffer' ); ?>
132 + </a>
133 + <?php
134 + }
135 + ?>
129 136 <a href="<?php echo esc_url( $disconnect_url ); ?>" class="button wpzinc-button-red">
130 137 <?php esc_html_e( 'Disconnect', 'wp-to-buffer' ); ?>
131 138 </a>
132 139 </div>