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
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Changing the template hierarchy
- Custom excerpt function re-factoring
- Trigger popup in a php if/else statement
- 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]
- How do I add custom bulk actions to multiple custom post types?
- 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
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- 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
- Catchable fatal error: Object of class stdClass could not be converted to string after WP 4.7
- Skt full width basic slideshow problem
- How to disable controls in theme customizer?
- Trying to retrieve post meta
- Is there a way to conditionally check whether a WordPress post title is empty?
- Does wordpress templates always in files or in database?
- WordPress admin-ajax.php
- Use .php file as page instead of wordpress page & template file?
- Adding wrapper elements in the_date() like in the_title()?
- What does this mean in wordpress? Easy question
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- 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)
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- Separation of presentation and code – WordPress
- WordPress Customizer Default Image
- Why in my theme I can’t see all the statics content under the posts?
- Theme not calling Jquery properly
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- What is the best way to define constant options for a theme?
- 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?
- Warning: printf(): Too few arguments in helpers.php file
- How to make function appear in sentence?
- add_filter function concatenate string and locate_template function
- Template Loop – add switch case php
- home.php show blog posts as grid view
- blank white page when post/update/change option etc
- How to Update an old theme for the latest wordpress version
- get_comments_number() returns 0
- Removing “Powered by” footer using child theme PHP [closed]
- How to add aria role and schema markup to custom walker container
- get_page_templates only return templates with “home” in the filename
- 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
- Show different website layout if no sidebar added
- How to correctly load a different version of main menu based on the user language in WordPress? Is it a good solution?
- Why in this WordPress theme I can’t see the Main Menu?
- Displaying Slider in Front Page (home) using Customizr Theme
- Need advice on theme customizer and child themes
- pass html code to worpdress
- call a string/function from database
- 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?
- how to replace h1 entry title with h2 in category pages only
- Display metabox galleries on specific page template in admin editor
- Not able to remove caption shortcode from the content
- When I click for the redirect link it is showing the content of index.php instead of single_assignment_page.php
- remove_action from parent theme using child theme functions.php
- 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?
- How to use data URL in WordPress?
- Check if current post in loop is last on current page
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- How can I prevent a shortcode div from extending beyond its boundaries?