Yes it is. It might get a bit clearer if you re-format this line
$title .= " $sep " . sprintf( __( 'Page %s', '_s' ), max( $paged, $page ) );
to:
$title .= " $sep ";
$title .= sprintf(
__( 'Page %s', '_s' ),
max( $paged, $page )
);
The first parameter of sprintf
expects a format which is here the return value of the __
function. The second parameter of this function is meant to be the text domain.
Update:
In fact, I think its the default text domain from the starter theme »Undersorce S« from where the example code in the codex might come from.
Update 2:
There you go: it looks like the sample from the codex was taken from the function _s_wp_title
. The _s
in the function name was replaced by theme_name
but the text domain obviously was missed out.
Related Posts:
- How to get the registered sidebar’s name by its id?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- One button to change all settings in theme customizer?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Design view breaking on Pages
- Add a Second Menu to a theme that only support 1 menu
- Can’t load WP function into external function
- Set WordPress Default Template
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- How do I link a button I created in theme customizer to a function?
- Use WordPress function in php file
- How to call multiple functions from multiple files into a WordPress page template [closed]
- get_template_directory adding FTP root folders in urls
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- Menu to the right of screen on desktop using Bootstrap 4
- Need help setting default setting value for radio button in theme customizer
- Check if a menu is empty?
- reason of splitting theme files to multiple files
- Dynamically change feature image in customiser
- Adjust the results quantity for Search Results page pagination
- Returning Variables back into a template
- Understanding WordPress child theme custom JS loading
- Use different javascript files for each page on website
- Is the regular ajax request method safe or I should use admin-ajax.php?
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Is it possible to use the featured image of a page as a css background without inlining?
- Switching between custom templates in a post type of the admin menu
- Use template for posts with a particular category grandparent
- Can I change a variable in a content part while calling it?
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Changing the template hierarchy
- Customizer: Output default value in Customizer CSS
- WordPress does not load page.php, return 404.php
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Converting HTML Template to WordPress Theme
- WordPress add post format support not working
- How to remove the cufon script from Dzonia Lite theme [closed]
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- what is the best practice to add new field to an api route
- Error in custom php function doesn’t exist
- Customizer: active_callback and sanitize_callback incompatibility?
- Populate editor with some content of a page with a page template
- Skt full width basic slideshow problem
- How to disable controls in theme customizer?
- What does this mean in wordpress? Easy question
- Showing latest post without 301 redirect
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- WordPress Customizer Default Image
- Theme not calling Jquery properly
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- Create page template via functions.php?
- Template Loop – add switch case php
- home.php show blog posts as grid view
- Removing “Powered by” footer using child theme PHP [closed]
- How to add aria role and schema markup to custom walker container
- Splitting the_content() by size?
- Is there a hack for using is_page() within the function.php file?
- Randomize Color Scheme Selection in Theme
- Extract and display user infromation on an automatically created page
- pass html code to worpdress
- Commas in Tag Cloud
- WordPress redirects page query parameter in URL
- Getting text from custom field from customizer
- Need help for some PHP code
- How to change basename url for wp-admin?
- Display metabox galleries on specific page template in admin editor
- Not able to remove caption shortcode from the content
- File from parent theme imported to child theme doesn’t work – any ideas?
- Problem with displaying CSS Stylesheets – Am I adding them correctly in my wordpress child theme?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Display post date also if the date it’s the same for each post
- How to override theme’s public static function inside of a trait?
- how to use 2 index.php file One for mobile and one for desktop
- How to include a function in a template with template tag
- Theme editing “post thumbnail” help
- Use Custiomizer to setup meta theme color tag
- Rotating Header Images
- Where can I find the declaration of `$_wp_theme_features`?
- Create a custom theme-specific page, invisible in the admin-panel?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Save the outputted image into the Media Library, with a different filename and extension
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Image not displayed
- how to register a second page-template
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Adding code to the function file
- I need a button to appear when not loged in and another when logged in, I need help fixing code PLEASE!
- Loop on a wordpress Page instead of content coming from the WP text editor
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- a problem in class in class-wp-hook.php
- Font Awesome Icons as squares [closed]