Skip to content

Commit

Permalink
🐛 Fix tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
19h47 committed Feb 23, 2022
1 parent 86b3ef4 commit 5692acc
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 7 deletions.
11 changes: 9 additions & 2 deletions admin/class-weblex-importer-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function render_settings_page_content( $active_tab = '' ) {
<div class="wrap">

<h2><?php _e( 'WebLex Importer Options', 'weblex-importer' ); ?></h2>
<?php settings_errors(); ?>
<?php settings_errors(); ?>

<form method="post" action="options.php">
<?php
Expand Down Expand Up @@ -125,31 +125,37 @@ public function initialize_display_options() {
'id' => 'actus',
'label' => __( 'Actus', 'weblex - importer' ),
'description' => __( 'Les actualités', 'weblex - importer' ),
'slug' => 'actus',
),
array(
'id' => 'agenda',
'label' => __( 'Agenda', 'weblex - importer' ),
'description' => __( "L'agenda fiscal et social", 'weblex - importer' ),
'slug' => 'agenda',
),
array(
'id' => 'fiches',
'label' => __( 'Fiches', 'weblex - importer' ),
'description' => __( 'Les fiches pratiques', 'weblex - importer' ),
'slug' => 'fiches',
),
array(
'id' => 'indicateurs',
'label' => __( 'Indicateurs', 'weblex - importer' ),
'description' => __( 'Les indicateurs chiffres et barèmes', 'weblex - importer' ),
'slug' => 'indicateurs',
),
array(
'id' => 'phdj',
'label' => __( 'La petite Histoire du Jour', 'weblex - importer' ),
'description' => __( 'La petite histoire du jour', 'weblex - importer' ),
'slug' => 'petite-histoire-du-jour',
),
array(
'id' => 'quiz - hebdo',
'label' => __( 'Quiz Hebdo', 'weblex - importer' ),
'description' => __( 'Le Quiz Hebdo', 'weblex - importer' ),
'slug' => 'quiz-hebdo',
),
);

Expand All @@ -163,6 +169,7 @@ public function initialize_display_options() {
array(
'description' => $feed['description'],
'id' => $feed['id'],
'slug' => $feed['slug'],
)
);
}
Expand All @@ -178,7 +185,7 @@ public function initialize_display_options() {
*/
public function save_weblex_feed( array $args ) {
$options = get_option( 'weblex_importer_options' );
$term = get_term_by( 'slug', sanitize_title( $args['description'] ), 'weblex-importer-tag' );
$term = get_term_by( 'slug', sanitize_title( $args['slug'] ), 'weblex-importer-tag' );

include plugin_dir_path( dirname( __FILE__ ) ) . 'admin/partials/weblex-importer-admin-input.php';
}
Expand Down
5 changes: 5 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ This section describes how to install the plugin and get it working.
* Check for content to display readmore link

= 0.0.25 =
* Release Date - 21 September 2021

= 0.0.26 =
* Change tag name

* Fix

== Upgrade Notice ==
4 changes: 2 additions & 2 deletions vendor/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => '1a7046a7be1b5a1b2450c86a4415c6f9d6cee2f0',
'reference' => '86b3ef4a37eb669233b76eb71cea6b65cf9d929e',
'name' => '__root__',
),
'versions' =>
Expand All @@ -44,7 +44,7 @@ class InstalledVersions
'aliases' =>
array (
),
'reference' => '1a7046a7be1b5a1b2450c86a4415c6f9d6cee2f0',
'reference' => '86b3ef4a37eb669233b76eb71cea6b65cf9d929e',
),
'yahnis-elsts/plugin-update-checker' =>
array (
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'aliases' =>
array (
),
'reference' => '1a7046a7be1b5a1b2450c86a4415c6f9d6cee2f0',
'reference' => '86b3ef4a37eb669233b76eb71cea6b65cf9d929e',
'name' => '__root__',
),
'versions' =>
Expand All @@ -18,7 +18,7 @@
'aliases' =>
array (
),
'reference' => '1a7046a7be1b5a1b2450c86a4415c6f9d6cee2f0',
'reference' => '86b3ef4a37eb669233b76eb71cea6b65cf9d929e',
),
'yahnis-elsts/plugin-update-checker' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion weblex-importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: WebLex Importer
* Plugin URI: https://github.com/19h47/weblex-importer/
* Description: Import posts from an WebLex RSS feed.
* Version: 0.0.25
* Version: 0.0.26
* Author: Jérémy Levron
* Author URI: https://19h47.fr/
* License: GPL-2.0+
Expand Down

0 comments on commit 5692acc

Please sign in to comment.