Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace links from the WordPress News to the ClassicPress Blog #248

Merged
merged 2 commits into from Nov 29, 2018

Conversation

dikiyforester
Copy link
Contributor

Description

Replaces links from the WordPress News to the ClassicPress Blog in the News widget on the Dashboard.

Changes number of fetching items from 1 to 5.

Motivation and context

This is an early step of implementation ClassicPress/ClassicPress-v1#236. A small change to make news links consistent.
According to comment ClassicPress/ClassicPress-v1#236

How has this been tested?

Needs to clear the transient cache before testing.
Or alternatively, comment out a block of code:

if ( false !== ( $output = get_transient( $cache_key ) ) ) {
echo $output;
return true;
}

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@nylen
Copy link
Contributor

nylen commented Nov 29, 2018

Explanation of my comments above: we shouldn't translate our site URLs, since they will be available in English only for the time being.

Previously: ClassicPress/ClassicPress-v1#193

Apart from that, this PR looks good as a first step. 👍

@dikiyforester
Copy link
Contributor Author

Thanks for reviewing, @nylen!

Gettext functions now removed from URLs.

Copy link
Contributor

@nylen nylen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, and for the quick update! I'll merge this after the automated tests pass.

@nylen nylen merged commit ecf88df into ClassicPress:develop Nov 29, 2018
@dikiyforester
Copy link
Contributor Author

Thanks!

@dikiyforester dikiyforester mentioned this pull request Dec 4, 2018
6 tasks
dikiyforester added a commit to dikiyforester/ClassicPress that referenced this pull request Dec 9, 2018
* petitions: (21 commits)
  Travis fix for JSLint
  Style new ally HTML tab
  JSLint error fix
  Use the right ally markup
  Use the right ally markup
  jshint fix - Strings must use singlequote
  Add transient key to save the internet with cache
  Add transient key to save the internet with cache
  Fixing tab spacing
  Fix Spacing & Comment
  Remove CP Naming
  Add Dashboard petitions widget
  Add Petitions Dashboard widget
  Renovate[bot]: Update dependency autoprefixer to v9.4.0 (ClassicPress#256)
  Renovate[bot]: Update Node.js to v10.14.1 (ClassicPress#252)
  Change dashboard news from WordPress News to the ClassicPress Blog (ClassicPress#248)
  Renovate[bot]: Update Node.js to v10.14.0 (ClassicPress#251)
  Renovate[bot]: Update dependency webpack to v4.26.1 (ClassicPress#249)
  Bump source version to 1.0.0-beta1+dev
  Fix upgrades from ClassicPress to ClassicPress
  ...
mattyrob pushed a commit that referenced this pull request Nov 20, 2023
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants