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

Fixo typos in secure-custom-fields.php #82

Merged
merged 2 commits into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions secure-custom-fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function init() {
// Update the name setting now that we're in the init hook.
acf_update_setting( 'name', __( 'Secure Custom Fields', 'secure-custom-fields' ) );

// Include 3rd party compatiblity.
// Include 3rd party compatibility.
acf_include( 'includes/third-party.php' );

// Include wpml support.
Expand Down Expand Up @@ -406,7 +406,7 @@ public function init() {
*/
do_action( 'acf/include_options_pages', ACF_MAJOR_VERSION );

// If we're on 6.5 or newer, load block bindings. This will move to an autoloader in 6.3.
// If we're on WP 6.5 or newer, load block bindings. This will move to an autoloader in SCF 6.3.
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
acf_include( 'includes/Blocks/Bindings.php' );
new ACF\Blocks\Bindings();
Expand Down Expand Up @@ -670,7 +670,7 @@ public function set_data( $name, $value ) {
* @param string $class The instance class name.
* @return object
*/
public function get_instance( $class ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.classFound -- Opting not to rename due to PHP 8.0 named arugments.
public function get_instance( $class ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.classFound -- Opting not to rename due to PHP 8.0 named arguments.
$name = strtolower( $class );
return isset( $this->instances[ $name ] ) ? $this->instances[ $name ] : null;
}
Expand All @@ -684,7 +684,7 @@ public function get_instance( $class ) { // phpcs:ignore Universal.NamingConvent
* @param string $class The instance class name.
* @return object
*/
public function new_instance( $class ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.classFound -- Opting not to rename due to PHP 8.0 named arugments.
public function new_instance( $class ) { // phpcs:ignore Universal.NamingConventions.NoReservedKeywordParameterNames.classFound -- Opting not to rename due to PHP 8.0 named arguments.
$instance = new $class();
$name = strtolower( $class );
$this->instances[ $name ] = $instance;
Expand Down