This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /home/konrad/form.diff | |
+++ <bez nazwy> | |
@@ -1,5 +1,5 @@ | |
<div class="wpforms-container wpforms-container-full wpforms-container-save-resume wpforms-render-modern" id="wpforms-5"> | |
-<form id="wpforms-form-5" class="wpforms-validate wpforms-form wpforms-ajax-form" data-formid="5" method="post" enctype="multipart/form-data" action="/ccpage/?wpforms_form_id=5" data-token="04ee49840a3e63579f0f515d208590f0" data-token-time="1718096763"> | |
+<form id="wpforms-form-5" class="wpforms-validate wpforms-form wpforms-ajax-form" data-formid="5" method="post" enctype="multipart/form-data" action="/ccpage/?wpforms_form_id=5" data-token="04ee49840a3e63579f0f515d208590f0" data-token-time="1718096787"> | |
<noscript class="wpforms-error-noscript">Please enable JavaScript in your browser to complete this form.</noscript> | |
<div class="wpforms-hidden" id="wpforms-error-noscript">Please enable JavaScript in your browser to complete this form.</div> | |
<div class="wpforms-field-container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Display raw payment field amount with smart tag. | |
Usage: | |
- add code below to functions.php of your theme | |
- use smart tag `{field_amount="x"}` where x is the field ID from which you want to retrive raw amount without currency symbol etc. | |
*/ | |
add_filter( 'wpforms_smarttags_get_smart_tag_class_name', 'get_amount_class_name', 10, 1 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Resolve Conflicts and Commit | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
build-and-commit: | |
if: github.event.label.name == 'has-conflicts' | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generated by ChatGPT, must be reviewed | |
# Configuration | |
GITHUB_TOKEN="your_access_token" | |
REPO_OWNER="username_or_organization" | |
REPO_NAME="repository_name" | |
LABEL="has-conflicts" | |
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/wpforms/src/Admin/Payments/Views/Overview/Page.php b/wpforms/src/Admin/Payments/Views/Overview/Page.php | |
index a1879f46d..534dfd825 100644 | |
--- a/wpforms/src/Admin/Payments/Views/Overview/Page.php | |
+++ b/wpforms/src/Admin/Payments/Views/Overview/Page.php | |
@@ -118,7 +118,7 @@ class Page implements PaymentsViewsInterface { | |
static $mode; | |
- if ( ValueValidator::is_valid_mode( $mode ) ) { | |
+ if ( ValueValidator::is_valid( $mode, 'mode' ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**/_xdc_._sixyrm && _xdc_._sixyrm( { | |
"html_attributions" : [], | |
"result" : { | |
"address_components" : [ | |
{ | |
"long_name" : "Swansea", | |
"short_name" : "Swansea", | |
"types" : [ "locality", "political" ] | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// edit: if you are using wp-cli, you can try to use this plugin https://github.com/OnTheGoSystems/acfml_fixer | |
// otherwise, please follow instructions below | |
// PLEASE READ ALL COMMENTS BEFORE RUNNING THIS SNIPPET | |
// ALSO THE COMMENTS AT THE END OF THIS SNIPPET | |
// | |
// CREATE DATABASE BACKUP! | |
// | |
// update ACFML to the version 1.6.1, you can find it in wpml.org > my account > downloads | |
// add the whole snippet to your functions.php in theme directory and visit any page of your blog/site |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// add code below to functions.php file of your theme | |
add_filter( 'the_content', function( $content ) { | |
if ( ! is_admin() ) { | |
$content = str_replace( 'WordPress', '<a href="https://wordpress.org">WordPress</a>', $content ); | |
} | |
return $content; | |
} ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The following styles get applied inside the editor only. | |
* | |
* Replace them with your own styles or remove the file completely. | |
*/ | |
.wp-block-syntax-block-syntax-highliter { | |
border: 1px dotted #f00; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import time | |
wp_url = "http://localhost/qatests/" | |
wp_admin_url = wp_url + "wp-admin/" | |
wp_login_url = wp_url + "wp-login.php" | |
wp_plugins_url = wp_admin_url + "plugins.php" |
NewerOlder