Skip to content

Commit

Permalink
Merge pull request #38 from wetory/development
Browse files Browse the repository at this point in the history
Post release sync + fixes
  • Loading branch information
wetory authored Mar 8, 2021
2 parents 3d4d073 + 5178e83 commit 0c52b09
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/plugin-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This action takes care of packaging WordPress plugin that can be downloaded and installed
# GitHub Action: Packaging WordPress plugin that can be downloaded and installed
# Inspired by https://leoloso.com/posts/github-action-to-release-wp-plugin/
name: Plugin Release
on:
release:
Expand All @@ -19,14 +20,14 @@ jobs:
- name: Create artifact
uses: montudor/action-zip@v0.1.0
with:
args: zip -X -r build/wetory-support.zip . -x *.git* nbproject/\* node_modules/\* .* "*/\.*" CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUE_TEMPLATE.md PULL_REQUEST_TEMPLATE.md *.dist composer.* dev-helpers** build**
args: zip -X -r build/wetory-support.zip . -x *.git* */nbproject/* node_modules/\* .* "*/\.*" CODE_OF_CONDUCT.md CONTRIBUTING.md ISSUE_TEMPLATE.md PULL_REQUEST_TEMPLATE.md *.dist composer.* dev-helpers** build**
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: wetory-support
path: build/wetory-support.zip
- name: Upload to release
uses: JasonEtco/upload-to-release@master
uses: jasonetco/upload-to-release@master
with:
args: build/wetory-support.zip application/zip
env:
Expand Down
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
[![Plugin Release](https://github.com/wetory/wetory-support/actions/workflows/plugin-release.yml/badge.svg?event=release)](https://github.com/wetory/wetory-support/actions/workflows/plugin-release.yml)
[![Plugin Release](https://github.com/wetory/wetory-support/actions/workflows/plugin-release.yml/badge.svg)](https://github.com/wetory/wetory-support/actions/workflows/plugin-release.yml)

# Wetory Support

WordPress plugin for [wetory projects](https://www.wetory.eu/projects/). Add reusable content to improve development workflow.
WordPress plugin for [wetory projects](https://www.wetory.eu/projects/). Adds reusable content to improve development workflow. Following best practices from official [Plugin Developer Handbook](https://developer.wordpress.org/plugins/).

## Installation
Download latest version of [plugin](http://github.com/wetory/wetory-support/releases/latest/download/wetory-support.zip). Go to WordPress admin dashboard and navigate to **Plugins -> Add new**. Use **Upload Plugin** instead of public repository search. Then activate newly installed plugin.

Download repository [ZIP file](https://github.com/wetory/wetory-support/archive/master.zip), strip tag name from folder in ZIP fle. Go to WordPress admin dashboard and navigate to **Plugins -> Add new**. Use **Upload Plugin** instead of public repository search. Then activate newly installed plugin.

## Usage
If older version of plugin is needed for investigation or compatibility problems, check [relese history](https://github.com/wetory/wetory-support/releases).

New menu **Wetory** is added to the admin sidebar navigation. Go to **Wetory -> Settings** to configure what you want to use from this plugin.
## Updates
Updates are handled from this private repository automatically with every new release. It will just appear in WordPress administration dashboard together with updates from plugin library.

![Plugin settings screen](https://github.com/wetory/wetory-support/blob/master/public/images/settings-screen.png)

Visit **Wetory -> Dashboard** to review all configuraiton in use via sumary table.
## Usage
New menu item **Wetory** is added to the admin sidebar navigation. Go to **Wetory -> Settings** to configure what you want to use from this plugin. You can check **Wetory -> Dashboard** to review all configuraiton in use via sumary table.

![Plugin dashboard screen](https://github.com/wetory/wetory-support/blob/master/public/images/dashboard-screen.png)

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
More datailed plugin usage instructions will be published soon.

## License
[GPLv2](http://www.gnu.org/licenses/gpl-2.0.html)
2 changes: 1 addition & 1 deletion includes/wetory-support-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function wetory_get_categories_by_post_type($post_type, $args = '') {
function wetory_get_first_image_src($html) {

$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $html, $matches);
$first_img = $matches[1][0];
$first_img = isset($matches[1][0]) ? $matches[1][0] : null;

if(empty($first_img)){
return false;
Expand Down

0 comments on commit 0c52b09

Please sign in to comment.